#include int main(){ char c; while(scanf("%c",&c)+1){ if(c>96){ c-=32; }else c+=32; printf("%c",c); } puts(""); return 0; }