#include using namespace std; int main(void){ string s; cin >> s; for(char c: s) putchar(c >= 'a' ? c-32 : c+32); cout << endl; return 0; }