#include <bits/stdc++.h>

using namespace std;

int main(){
	string str;
	
	while(getline(cin,str)){
		if(str[0] >= 'a' && str[0] <= 'z')str[0] -= 32;
		
		for(int i = 1;i < str.size();i ++){
			while(str[i] == ' '|| str[i] == '\t' || str[i] == '\r' || str[i] == '\n'){
				i ++;
				if(str[i] >= 'a' && str[i] <= 'z'){
					str[i] -= 32;
				}
			}
		}
		cout << str << endl;
	}
	return 0;
}