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