#include<iostream>
#include<cctype>
using namespace std;
int main(void)
{
char s[100];
int len;
int count;
while (gets(s))
{
len = strlen(s);
for (int i = 0; i < len; i++)
{
count = 0;
if (s[i] == ' ') continue;
else
{
for (int j = i; j < len; j++)
{
if (s[j] == ' ') break;
else count++;
}
s[i] = toupper(s[i]);
i = i + (count - 1);
}
}
cout << s << endl;
}
return 0;
}
#include<cctype>
using namespace std;
int main(void)
{
char s[100];
int len;
int count;
while (gets(s))
{
len = strlen(s);
for (int i = 0; i < len; i++)
{
count = 0;
if (s[i] == ' ') continue;
else
{
for (int j = i; j < len; j++)
{
if (s[j] == ' ') break;
else count++;
}
s[i] = toupper(s[i]);
i = i + (count - 1);
}
}
cout << s << endl;
}
return 0;
}