#include #include int main(void) { char str[100]; scanf("%s", str); for(int i=0;i='A'&&str[i]<='Z'){ str[i]+=32; }else{ str[i]-=32; } } printf("%s\n", str); }