#include <iostream>
using namespace std;
bool check(string s,int i){
if(s[i]==' '||s[i]=='\t'||s[i]=='\r'||s[i]=='\n')return true;
return false;
}
int main() {
string s;
while (getline(cin,s)) { // 注意 while 处理多个 case
int n=s.size();
if(!n)continue;
if(s[0]>='a'&&s[0]<='z')s[0]-=32;
for(int i=1;i<n;i++){
if(check(s,i-1)&&s[i]>='a'&&s[i]<='z')s[i]-=32;
}
cout<<s<<endl;
}
return 0;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号