/* Demonstrasi karakter dan string */
#include <stdio.h>
#include <iostream>
#include <string.h>
using namespace std;
string lowerCase(string str){
for(int i = 0; i < str.length(); i++)
str[i] = towlower(str[i]);
return str;
}
int main(){
string str;
cin >> str;
while(str != "STOP"){
cout << lowerCase(str) << '\n';
cin >> str;
}
}
IC8qIERlbW9uc3RyYXNpIGthcmFrdGVyIGRhbiBzdHJpbmcgKi8KIAogI2luY2x1ZGUgPHN0ZGlvLmg+CiAjaW5jbHVkZSA8aW9zdHJlYW0+CiAjaW5jbHVkZSA8c3RyaW5nLmg+CiB1c2luZyBuYW1lc3BhY2Ugc3RkOwogCiBzdHJpbmcgbG93ZXJDYXNlKHN0cmluZyBzdHIpewogCSBmb3IoaW50IGkgPSAwOyBpIDwgc3RyLmxlbmd0aCgpOyBpKyspCiAJICAgICBzdHJbaV0gPSB0b3dsb3dlcihzdHJbaV0pOwogCSByZXR1cm4gc3RyOwogfQogCiBpbnQgbWFpbigpewogCSBzdHJpbmcgc3RyOwogICAJIGNpbiA+PiBzdHI7CiAJIHdoaWxlKHN0ciAhPSAiU1RPUCIpewogCSAgICAgY291dCA8PCBsb3dlckNhc2Uoc3RyKSA8PCAnXG4nOwogCSAJIGNpbiA+PiBzdHI7CiAJIH0KIH0=