#include #define rep(i,a,b) for(int i = (a); i < (b); i++) #define all(A) (A).begin(),(A).end() #define MOD 1000000007 using namespace std; using ll = long long; using Graph = vector>; int main() { string s; cin >> s; rep(i,0,(int)s.size()){ if(isupper(s[i])) cout << (char)tolower(s[i]); else cout << (char)toupper(s[i]); } cout << endl; }