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