#include<iostream>
#include<string>
#include<vector>
using std::vector;
using std::string;
using std::cout;
using std::endl;
using std::cin;
int main()
{
vector<string> a;
string word;
//read a sequence of words from cin and store the values a vector
while (cin >> word)
a.push_back(word);
cout << a.size() << endl;
vector<string>::iterator it;
for (it = a.begin(); it != a.end(); it++)
{
for(auto &temp:*it) //remember use the reference to change the word
temp=toupper(temp);
cout << *it << endl;
}
return 0;
}