#include <iostream>

using namespace std;

int main()
{
	string s;
	bool bre = false, f = false;

	while (1){
		cin >> s;	

		for (int i = 0; i < s.size(); i++){
			if (s[i] == '.') bre = true;
			else if ('a' <= s[i] && s[i] <= 'z') s[i] += 'A' - 'a';	
		}
		if (!f){
		 cout << s;
		 f = true;
		}
		else cout << " " << s;
		if (bre) break;
	}
	cout << endl;
	return (0);
}