#include using namespace std; int main() { string s; cin >> s; for (char &c : s) { if ('a' <= c and c <= 'z') c -= 0x20; else c += 0x20; } cout << s << '\n'; return 0; }