

n = int(eval(input()))

s = eval(input())

a = list("ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ")

x = ""

for i in s:

    x += a[a.index(i)+n]

print(x)

N = int(eval(input()))

S = eval(input())

print(("".join(chr(65+(ord(s)-65+N)%26) for s in S)))
n = int(eval(input()))
s = eval(input())
a = list("ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ")
x = ""
for i in s:
    x += a[a.index(i) + n]
print(x)

N = int(eval(input()))
S = eval(input())
print(("".join(chr(65 + (ord(s) - 65 + N) % 26) for s in S)))

-n = int(eval(input())) -s = eval(input()) -a = list("ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ") -x = "" -for i in s: -    x += a[a.index(i) + n] -print(x) +N = int(eval(input())) +S = eval(input()) +print(("".join(chr(65 + (ord(s) - 65 + N) % 26) for s in S)))