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