#include <bits/stdc++.h> using namespace std; int main(){ string s; while(getline(cin , s)){ for (int i=0; i<s.size(); i++){ if (i == 0 && s[i] >= 'a' && s[i] <= 'z'){ s[i] = s[i] + 'A' - 'a'; } if (s[i]=='\n' || s[i] == '\t' || s[i] == '\r' || s[i] == ' ' && i!=s.size()-1){ if (s[i+1] >= 'a' && s[i] <= 'z') s[i+1] = s[i+1] +'A' - 'a'; } } for (int i=0; i<s.size(); i++){ cout << s[i]; } } return 0; }