#include #include using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; for (int i = 0; i < s.length(); ++i) { int x = s[i]; if (x >= 97) x -= 32; else x += 32; s[i] = x; } cout << s << endl; return 0; }