#include<iostream> #include<cstring> using namespace std; char str[81]; void translate() { int len = strlen(str); for (int i = 0; i < len; i++) { if ((str[i] < 'z' && str[i] >= 'a') || (str[i] < 'Z' && str[i] >= 'A')) { str[i]++; continue; } if (str[i] == 'Z') str[i] = 'A'; if (str[i] == 'z') str[i] = 'a'; } } int main() { cin.getline(str, 80); translate(); cout << str << endl; system("pause"); return 0; }