#include<bits/stdc++.h>
using namespace std;
int main(){
char c,ans; cin >> c;
c <= 90 ? ans = c+32 : ans = c-32;
cout << ans;
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CgljaGFyIGMsYW5zOwljaW4gPj4gYzsKCWMgPD0gOTAgPyBhbnMgPSBjKzMyIDogYW5zID0gYy0zMjsKCWNvdXQgPDwgYW5zOwoJcmV0dXJuIDA7Cn0=