#include using namespace std; typedef long long ll; typedef string str; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); str s; cin >> s; for (ll i = 0; i < s.size(); i++) { if (s[i] >= 'a' && s[i] <= 'z') cout << (char)toupper(s[i]); else cout << (char)tolower(s[i]); } return 0; }