E=list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")



N=int(eval(input()))



S=list(eval(input()))



while(N>=26):

    N-=26





for i in range(len(S)):

    if N+E.index(S[i])<=25:

        S[i]=E[N+E.index(S[i])]

    elif N+E.index(S[i])>=26:

        S[i]=E[N+E.index(S[i])-26]



print(("".join(S)))

z="ABCDEFGHIJKLMNOPQRSTUVWXYZ"*2

n=int(eval(input()))%26

s=eval(input())

out=[]

for a in s:

    out.append(z[z.find(a)+n])

print(("".join(out)))

E = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
N = int(eval(input()))
S = list(eval(input()))
while N >= 26:
    N -= 26
for i in range(len(S)):
    if N + E.index(S[i]) <= 25:
        S[i] = E[N + E.index(S[i])]
    elif N + E.index(S[i]) >= 26:
        S[i] = E[N + E.index(S[i]) - 26]
print(("".join(S)))

z = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" * 2
n = int(eval(input())) % 26
s = eval(input())
out = []
for a in s:
    out.append(z[z.find(a) + n])
print(("".join(out)))

-E = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") -N = int(eval(input())) -S = list(eval(input())) -while N >= 26: -    N -= 26 -for i in range(len(S)): -    if N + E.index(S[i]) <= 25: -        S[i] = E[N + E.index(S[i])] -    elif N + E.index(S[i]) >= 26: -        S[i] = E[N + E.index(S[i]) - 26] -print(("".join(S))) +z = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" * 2 +n = int(eval(input())) % 26 +s = eval(input()) +out = [] +for a in s: +    out.append(z[z.find(a) + n]) +print(("".join(out)))