#include using namespace std; signed main(){ string s;cin>>s; for(char p:s){ if(p>='A' and p<='Z')cout<<(p-'A'+'a'); else cout<<(p+'A'-'a'); } cout<