#include<iostream> #include<cstdio> using namespace std; int main(){ char c; cin>>c; if(('A'<=c)&&(c<='Z')) c=c+32; else c=c-32; cout<<c; }