#include using namespace std; int main() { char c; while (~scanf("%c", &c)) printf("%c", 'a' <= c && c <= 'z' ? toupper(c) : tolower(c)); printf("\n"); }