#include <iostream>
#include <string>
#include <cctype>
#include <numeric>
#include <iomanip>
int main()
{
std::string line ;
while ( std::getline(std::cin, line) && line.length() > 0 )
{
unsigned nCaps = std::accumulate(std::begin(line), std::end(line), 0u,
[](unsigned val, char ch){return val+=std::isupper(ch)?1:0;}) ;
std::cout << std::fixed << std::setprecision(0)
<< (static_cast<double>(nCaps) / line.length())*100.0 << "% CAPS\n" ;
}
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8Y2N0eXBlPgojaW5jbHVkZSA8bnVtZXJpYz4KI2luY2x1ZGUgPGlvbWFuaXA+CgppbnQgbWFpbigpCnsKICAgIHN0ZDo6c3RyaW5nIGxpbmUgOwoKICAgIHdoaWxlICggc3RkOjpnZXRsaW5lKHN0ZDo6Y2luLCBsaW5lKSAmJiBsaW5lLmxlbmd0aCgpID4gMCApCiAgICB7CiAgICAgICAgdW5zaWduZWQgbkNhcHMgPSBzdGQ6OmFjY3VtdWxhdGUoc3RkOjpiZWdpbihsaW5lKSwgc3RkOjplbmQobGluZSksIDB1LCAKICAgICAgICAgICAgW10odW5zaWduZWQgdmFsLCBjaGFyIGNoKXtyZXR1cm4gdmFsKz1zdGQ6OmlzdXBwZXIoY2gpPzE6MDt9KSA7CgogICAgICAgIHN0ZDo6Y291dCA8PCBzdGQ6OmZpeGVkIDw8IHN0ZDo6c2V0cHJlY2lzaW9uKDApCiAgICAgICAgICAgIDw8IChzdGF0aWNfY2FzdDxkb3VibGU+KG5DYXBzKSAvIGxpbmUubGVuZ3RoKCkpKjEwMC4wIDw8ICIlIENBUFNcbiIgOwogICAgfQp9
TUFSWSBIQUQgQSBMSVRUTEUgbGFtYi4KSXQncyBmbGVlY2Ugd2FzIHdoaXRlIGFzIHNub3cuCkFuZCBFVkVSWVdIRVJFIFRIQVQgTUFSWSBXRU5ULAp0aGUgTGFtYiB3YXMgc3VyZSB0byBnby4=
MARY HAD A LITTLE lamb.
It's fleece was white as snow.
And EVERYWHERE THAT MARY WENT,
the Lamb was sure to go.