#include<iostream>
using namespace std;
int main(){
string s;
getline(cin,s);
//cout<<s;
char last;
for(int i=0;i<s.size();i++){
if(i==0){
cout<<char(toupper(s[i]));
last = s[i];
}
else{
if(last == ' ') cout<<char(toupper(s[i]));
else cout<<s[i];
last = s[i];
}
}
}