N = int(eval(input()))

S = eval(input())

alf = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"



out = []

for i in range(len(S)):

    for j in range(26):

        if S[i] == alf[j]:

            k = (j + N) % 26

            out.append(alf[k])



print(("".join(out)))
import sys

read = sys.stdin.buffer.read

readline = sys.stdin.buffer.readline

readlines = sys.stdin.buffer.readlines



N = int(readline())

S = [x - ord('A') for x in read().rstrip()]

S = [(x + N) % 26 for x in S]



answer =  ''.join(chr(x + ord('A')) for x in S)

print(answer)
N = int(eval(input()))
S = eval(input())
alf = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
out = []
for i in range(len(S)):
    for j in range(26):
        if S[i] == alf[j]:
            k = (j + N) % 26
            out.append(alf[k])
print(("".join(out)))

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N = int(readline())
S = [x - ord("A") for x in read().rstrip()]
S = [(x + N) % 26 for x in S]
answer = "".join(chr(x + ord("A")) for x in S)
print(answer)

-N = int(eval(input())) -S = eval(input()) -alf = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" -out = [] -for i in range(len(S)): -    for j in range(26): -        if S[i] == alf[j]: -            k = (j + N) % 26 -            out.append(alf[k]) -print(("".join(out))) +import sys + +read = sys.stdin.buffer.read +readline = sys.stdin.buffer.readline +readlines = sys.stdin.buffer.readlines +N = int(readline()) +S = [x - ord("A") for x in read().rstrip()] +S = [(x + N) % 26 for x in S] +answer = "".join(chr(x + ord("A")) for x in S) +print(answer)