n=int(input())

s=input()



l=list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")

ans=[]

for st in s:

  ind=l.index(st)

  new_ind=ind+n

  if new_ind >25:

    new_ind-=26

  ans.append(l[new_ind])

print(*ans,sep="")



n=int(eval(input()))

sl=list(eval(input()))



ch=list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")

ans=""

for s in sl:

    ind=ch.index(s)

    ans+=ch[(ind+n)% 26]

print(ans)
n = int(input())
s = input()
l = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
ans = []
for st in s:
    ind = l.index(st)
    new_ind = ind + n
    if new_ind > 25:
        new_ind -= 26
    ans.append(l[new_ind])
print(*ans, sep="")

n = int(eval(input()))
sl = list(eval(input()))
ch = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
ans = ""
for s in sl:
    ind = ch.index(s)
    ans += ch[(ind + n) % 26]
print(ans)

-n = int(input()) -s = input() -l = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") -ans = [] -for st in s: -    ind = l.index(st) -    new_ind = ind + n -    if new_ind > 25: -        new_ind -= 26 -    ans.append(l[new_ind]) -print(*ans, sep="") +n = int(eval(input())) +sl = list(eval(input())) +ch = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") +ans = "" +for s in sl: +    ind = ch.index(s) +    ans += ch[(ind + n) % 26] +print(ans)