#include using namespace std; int main() { char s[101]; cin >> s; for(int i = 0; s[i] != '\0'; i++){ if((s[i] >= 'a') && (s[i] <= 'z')) s[i]-=32; else s[i]+=32; } cout << s << endl; return 0; }