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