#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define debug(x) cout<<#x<<": "< vi; template T_char ToUpper(T_char cX) { return toupper(cX); } template T_char ToLower(T_char cX) { return tolower(cX); } void solve(){ #ifdef _WIN32 istream &cin = ifstream("input.txt"); #endif string str, ustr, lstr; cin >> str; ustr.resize(str.size()); lstr.resize(str.size()); transform(str.begin(), str.end(), ustr.begin(), ToUpper); transform(str.begin(), str.end(), lstr.begin(), ToLower); rep(i, str.size()){ if (str[i] == ustr[i]) cout << lstr[i]; else cout << ustr[i]; } cout << endl; } int main(){ cin.tie(0); ios::sync_with_stdio(false); solve(); system("PAUSE"); return 0; }