#include<bits/stdc++.h> using namespace std; int main(){ char q; cin>>q; if(q<=90){ q+=32; }else{ q-=32; } cout<<q; return 0; }