#include <iostream>
#include <cmath>
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
string s;
string k;
int n;
cin >> s;
n = s.length();
for(int i=0; i<n; i++){
k = toupper(s[i]) + tolower(s[i])*i;
}
cout << k;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CiNpbmNsdWRlIDxjc3RkaW8+CiNpbmNsdWRlIDx2ZWN0b3I+CiNpbmNsdWRlIDxhbGdvcml0aG0+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCXN0cmluZyBzOwoJc3RyaW5nIGs7CglpbnQgbjsKCWNpbiA+PiBzOwoJbiA9IHMubGVuZ3RoKCk7CgkgZm9yKGludCBpPTA7IGk8bjsgaSsrKXsKICAgICAgIGsgPSB0b3VwcGVyKHNbaV0pICsgdG9sb3dlcihzW2ldKSppOwogICAgICAgfQogICAgICAgY291dCA8PCBrOwoJcmV0dXJuIDA7Cn0=