#include #include using namespace std; int main() { string S; cin >> S; for(int i=0; S[i] != '\0'; ++i) { S[i] = islower(S[i]) ? toupper(S[i]) : tolower(S[i]); } cout << S << endl; }