#include <iostream>
using namespace std;

int main() {
    string str;
    while (getline(cin,str)) { // 注意 while 处理多个 case
        int index = 0;
        while (index < str.size() && (str[index] == ' ' ||
        str[index] == '\t' || str[index] == '\r' || str[index] == '\n')) {
            index++;
        }
        while (index < str.size()) {
            if (str[index] >= 'a' && str[index] <= 'z'){
                str[index++] = str[index] - 'a' + 'A';
            }
            while (index < str.size() && (str[index] != ' ' &&
            str[index] !='\t' && str[index] != '\r' &&str[index] != '\n'))
                index++;
            while (index < str.size() && (str[index] == ' ' ||
            str[index] == '\t' || str[index] == '\r' || str[index] == '\n')) 
                index++;
        }
        cout<<str<<endl;   
    }
}
// 64 位输出请用 printf("%lld")