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