#include <iostream> #include <stdio.h> #include <ctype.h> using namespace std; int main() { char cs[1201]; scanf("%[^\n]",cs); for(int i=0;cs[i]!='\0';i++){ char c=cs[i],c2; if(tolower(c)!=c){ c2=tolower(c); }else if(toupper(c)!=c){ c2=toupper(c); }else{ c2=c; } printf("%c",c2); } printf("\n"); return 0; }