#include<iostream>
#include<string>
#include<stdlib.h>
using namespace std;
int main() {
string str;
while (getline(cin,str)) {
int length = str.length();
for (int i = 0; i < length; i++) {
if (str[i] == str[0]||str[i-1]==' ') {
str[i] -= 32;
}
}
cout << str << endl;
}
system("pause");
return 0;
}
#include<string>
#include<stdlib.h>
using namespace std;
int main() {
string str;
while (getline(cin,str)) {
int length = str.length();
for (int i = 0; i < length; i++) {
if (str[i] == str[0]||str[i-1]==' ') {
str[i] -= 32;
}
}
cout << str << endl;
}
system("pause");
return 0;
}