#include <iostream>
#include <cstdio>
#include <string>
using namespace std;

int main() {
    string str;
    cin>>str;
    for(int i=0;i<str.size();i++){
        if('A'<=str[i] && str[i]<= 'Z'){
            str[i]='A'+(25-(str[i]-'A'));
        }else if('a'<=str[i] && str[i]<= 'z'){
            str[i]='a'+(25-(str[i]-'a'));
        }
    }
    cout<<str<<endl;
    return 0;
}
// 64 位输出请用 printf("%lld")