#include <iostream>
#include <string>
using namespace std;
string s;
bool ifH(char c)
{
if(c>=97&&c<=122)return false;//小写
return true;
}
void beH(char &c)//转变为大写
{
int l = c-'a';
c = 'A'+l;
}
int main() {
getline(cin,s);
if(!ifH(s[0]))beH(s[0]);
for(int i=1;i<s.size();i++)
{
if((s[i-1]==' '||s[i-1]=='\t'||s[i-1]=='\n'||s[i-1]=='\r')&&!ifH(s[i]))beH(s[i]);
}
cout<<s;
}
// 64 位输出请用 printf("%lld")

京公网安备 11010502036488号