#include<iostream> using namespace std; int main(){ char c; cin>>c; if(c>=65){ if(c<=90){ c=c+32; } else{ c=c-32; } } cout<<c<<endl; return 0; }