#include using namespace std; int main() { string s, o; cin >> s; // ¥100 → ¥1000 for(const auto& c : s){ if(isupper(c)) o += tolower(c); if(islower(c)) o += toupper(c); } cout << o << endl; return 0; }