#include #include #include #include #include #include #include #include #include #include #include #include #define FOR(i, a, b) for(int i=(a);i<=(b);i++) #define RFOR(i, a, b) for(int i=(a);i>=(b);i--) #define MOD 1000000007 #define INF 1000000000 using namespace std; int main(void) { string s; cin >> s; FOR(i, 0, s.size() - 1) { if (s[i] >= 'A'&&s[i] <= 'Z') { s[i] =s[i] -'A' + 'a'; } else { s[i] = s[i] - 'a' + 'A'; } } cout << s << endl; return 0; }