#include #include using namespace std; int main(){ string in; cin >> in; string s; for(char x:in){ s += (islower(x) == 0 ? tolower(x) : toupper(x) ); } cout << s << endl; return 0; }