#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main() {
	string str;
	getline(cin, str);
	for (int i = 0; i < str.size(); i++) {
		if (str[i] >= 'E' && str[i] <= 'Z') {
			str[i] += 'A' - 'E';
		}
		else if (str[i] >= 'e' && str[i] <= 'z') {
			str[i] += 'a' - 'e';
		}
		else if (str[i] >= 'A' && str[i] < 'E') {
			str[i] -= 'A' - 'W';
		}
		else if (str[i] >= 'a'&&str[i] < 'e') {
			str[i] -= 'a';
			str[i] += 'w';
		}
		cout << str[i];
	}
	cout << endl;

	return 0;
}