#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include #define rep(i,n) for(int i=0;i<(n);i++) #define all(x) x.begin(), x.end() #define rall(x) x.rbegin(), x.rend() #define sz(x) ((int)(x).size()) #define pb push_back using ll = long long; using namespace std; templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> S; ll N; cin >> N; rep(i,sz(S)){ if('a'<=S[i]&&S[i]<='z'){ cout << rot(S[i],N%26); } else if('A'<=S[i]&&S[i]<='Z'){ cout << Rot(S[i],N%26); } else{ char out=S[i]; ll M = N; while(M){ if(out=='9') break; out++; M--; } if(M){ M--; string s = "CpCzNkSuTbEoA"; rep(j,sz(s)){ if('a'<=s[j]&&s[j]<='z'){ cout << rot(s[j],M%26); } else if('A'<=s[j]&&s[j]<='Z'){ cout << Rot(s[j],M%26); } } } else cout << (char)(out); } } cout << endl; return 0; }