#include main() { char str[128]; scanf("%s", str); for (int i=0; i<128; i++) { if (str[i] == 0) break; if (str[i] >= 'a') printf("%c", str[i] - ('a' - 'A')); else printf("%c", str[i] + ('a' - 'A')); } }