#include<iostream>
using namespace std;
class TextProcessor{
    public:
    static void process(string str){
        bool valid = true;
        for(int i=0; i<str.length(); i++){
            if(!((str[i]>= 'a'&& str[i]<='z')
            ||(str[i] >='A' && str[i] <='Z'))){
                VALID=FALSE;
                BREAK;
            }
        }
        if (valid){
            for(int i=0; i<str.length(); i++){
                if(str[i]>='a' && str[i]<='z'){
                    str[i]=str[i] - 32;
                }
            }
            cout<<str<<endl
        }
    }