#include <iostream>
#include <cstring>
using namespace std;
int main()
{
string str;
cin >> str;
int s = str.size();
int i;
string ans = str;
string ans2 = ans;
int changes = 0;
int changesStart = 0;
//cout << str << " " << ans << " " << ans2 << " ";
for(i = 0; i < s; i++) {
char c;
if(str[i] == 'a')
c = 'z';
else
c = str[i]-1;
ans2[i] = c;
if(ans2 < ans) {
if(i == 0 || changes == 0) {
ans = ans2;
changes++;
changesStart = i;
}
else {
if(changesStart == i-1) {
ans = ans2;
changes++;
changesStart = i;
}
else
break;
}
}
ans2 = ans;
}
cout << ans << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgc3RyaW5nIHN0cjsKICAgIGNpbiA+PiBzdHI7CiAgICBpbnQgcyA9IHN0ci5zaXplKCk7CiAgICBpbnQgaTsKICAgIHN0cmluZyBhbnMgPSBzdHI7CiAgICBzdHJpbmcgYW5zMiA9IGFuczsKICAgIGludCBjaGFuZ2VzID0gMDsKICAgIGludCBjaGFuZ2VzU3RhcnQgPSAwOwogICAgLy9jb3V0IDw8IHN0ciA8PCAiICIgPDwgYW5zIDw8ICIgIiA8PCBhbnMyIDw8ICIgIjsKICAgIGZvcihpID0gMDsgaSA8IHM7IGkrKykgewogICAgICAgIGNoYXIgYzsKICAgICAgICBpZihzdHJbaV0gPT0gJ2EnKQogICAgICAgICAgICBjID0gJ3onOwogICAgICAgIGVsc2UKICAgICAgICAgICAgYyA9IHN0cltpXS0xOwogICAgICAgIGFuczJbaV0gPSBjOwogICAgICAgIGlmKGFuczIgPCBhbnMpIHsKICAgICAgICAgICAgaWYoaSA9PSAwIHx8IGNoYW5nZXMgPT0gMCkgewogICAgICAgICAgICAgICAgYW5zID0gYW5zMjsKICAgICAgICAgICAgICAgIGNoYW5nZXMrKzsKICAgICAgICAgICAgICAgIGNoYW5nZXNTdGFydCA9IGk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICBpZihjaGFuZ2VzU3RhcnQgPT0gaS0xKSB7CiAgICAgICAgICAgICAgICAgICAgYW5zID0gYW5zMjsKICAgICAgICAgICAgICAgICAgICBjaGFuZ2VzKys7CiAgICAgICAgICAgICAgICAgICAgY2hhbmdlc1N0YXJ0ID0gaTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGVsc2UKICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICBhbnMyID0gYW5zOwogICAgfQogICAgY291dCA8PCBhbnMgPDwgZW5kbDsKICAgIHJldHVybiAwOwp9