#include <bits/stdc++.h>
#define MAX 81
using namespace std;

int main(){
	int len;
	char s[MAX];
	while(cin>>s){
		char res[MAX];
		for(int i = 0; i < strlen(s); i++){
			if(s[i] >= 'a' && s[i] <= 'z'){
				len = s[i] - 'a';
				res[i] = 'z' - len;
//				cout<<res[i];
			}
			else if(s[i] >= 'A' && s[i] <= 'Z'){
				len = s[i] - 'A';
				res[i] = 'Z' - len;
//				cout<<res[i];
			}else{
				res[i] = s[i];
//				cout<<res[i];
			}
		}
		cout<<res<<endl;	
	}

}