#include <iostream>
#include <string>
using namespace std;
int main() 
{
    //ios::sync_with_stdio(false);
    string str;
    while(getline(cin,str))
    {
        for(int i=0;i<str.size();++i)
        {
            if(
                (i==0||str[i-1]==' '||str[i-1]=='\t'||str[i-1]=='\r'||str[i-1]=='\n')
                &&('a'<=str[i]&&str[i]<='z')
            )
            {
                str[i]='A'+str[i]-'a';
            }
        }
        cout<<str;
        
    }
}
// 64 位输出请用 printf("%lld")

 京公网安备 11010502036488号
京公网安备 11010502036488号