#include using namespace std; string incr(string s){ string ans = ""; for(int i = 0; s.size() > i; i++){ if('a' <= s[i] && s[i] <= 'z'){ if(s[i] == 'z')ans.push_back('a'); else ans.push_back(s[i]+1); }else if('A' <= s[i] && s[i] <= 'Z'){ if(s[i] == 'Z')ans.push_back('A'); else ans.push_back(s[i]+1); }else if(s[i] == '9'){ ans = ans+"CpCzNkSuTbEoA"; }else{ ans.push_back(s[i]+1); } } return ans; } bool allc(string s){ for(int i = 0; s.size() > i; i++){ if('0' <= s[i] && s[i] <= '9'){ return false; } } return true; } int main(){ string s;cin>>s; int n;cin>>n; while(n && allc(s)){ s = incr(s); n--; } n%=26; while(n){ s = incr(s); n--; } cout << s << endl; }