#include<iostream>
#include<string>
#include<cctype>
using namespace std;
class textprocessor
{
    private:
    static int count;
    
    public:
    static void convert_to_upper(string str)
    {
        bool valid=true;
        
        for(int i=0;i<str.length();i++)
        {
        for(!(str[i]>='a'&& str[i]<='z'))||(str[i]>='A'&&str[i]<='z'))
        {
        valid=false;
        break;
        }
            
        }
    }
};
if(valid)
{
    for(int i=0;i<str.lenght();i++)
    {
        str[i]=toupper(str[i]);
    }
    cout<<str<<endl;
    count++;
}
else
{
    cout<<"Invalid input"<<endl;
    
}
}
};
int textprocessor::count=0;

int main()
{
    int n;
    cin>>n;
    cin.ignore();
    
    string str;
    
    for(int i=0; i<0; ++i)
    {
        cin>>str;
        textprocessor::convert_to_upper(str);
    }
    return 0;
}
}