You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
394 B
18 lines
394 B
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
string s;
|
|
getline(cin, s);
|
|
|
|
for (int i = 0; i < s.length(); ++i) {
|
|
if ((s[i] >= 'a' && s[i] <= 'y') || (s[i] >= 'A' && s[i] <= 'Y')) {
|
|
cout << char(s[i] + 1);
|
|
} else if (s[i] == 'z' || s[i] == 'Z') {
|
|
cout << 'a';
|
|
} else cout << s[i];
|
|
}
|
|
return 0;
|
|
}
|