#include <stdio.h> #include <string.h> int main() { char s[80]; scanf("%s", s); for (int i = 0; i < strlen(s); i++) { if (s[i] >= 'a' && s[i] <= 'm') { s[i] = 'z'- (s[i] - 'a'); } else if (s[i] >= 'n' && s[i] <= 'z') { s[i] = 'a' + ('z' - s[i]); } else if (s[i] >= 'A' && s[i] <= 'M') { s[i] = 'Z' - (s[i] - 'A'); } else if (s[i] >= 'N' && s[i] <= 'Z') { s[i] = 'A' + ('Z' - s[i]); } } printf("%s\n", s); return 0; }