#coding:utf-8

n = int(eval(input()))

s = eval(input())



string = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']

letter = []

ans = []



for i in s:

    letter.append(i)



for i in letter:

    for j in range(0, 26):

        if  i == string[j]:

            tmp = j + n

            #print(tmp)

            if tmp > 25:

                tmp = tmp % 26

            ans.append(string[tmp])



#print(ans)

print((''.join(ans)))

#coding:utf-8

n = int(eval(input()))

s = list(eval(input()))

#print(s)

ans = []



for i in s:

    tmp = ((ord(i) - 65 + n) % 26) + 65

    ans.append(chr(tmp))



print((''.join(ans)))
# coding:utf-8
n = int(eval(input()))
s = eval(input())
string = [
    "A",
    "B",
    "C",
    "D",
    "E",
    "F",
    "G",
    "H",
    "I",
    "J",
    "K",
    "L",
    "M",
    "N",
    "O",
    "P",
    "Q",
    "R",
    "S",
    "T",
    "U",
    "V",
    "W",
    "X",
    "Y",
    "Z",
]
letter = []
ans = []
for i in s:
    letter.append(i)
for i in letter:
    for j in range(0, 26):
        if i == string[j]:
            tmp = j + n
            # print(tmp)
            if tmp > 25:
                tmp = tmp % 26
            ans.append(string[tmp])
# print(ans)
print(("".join(ans)))

# coding:utf-8
n = int(eval(input()))
s = list(eval(input()))
# print(s)
ans = []
for i in s:
    tmp = ((ord(i) - 65 + n) % 26) + 65
    ans.append(chr(tmp))
print(("".join(ans)))

-s = eval(input()) -string = [ -    "A", -    "B", -    "C", -    "D", -    "E", -    "F", -    "G", -    "H", -    "I", -    "J", -    "K", -    "L", -    "M", -    "N", -    "O", -    "P", -    "Q", -    "R", -    "S", -    "T", -    "U", -    "V", -    "W", -    "X", -    "Y", -    "Z", -] -letter = [] +s = list(eval(input())) +# print(s) -    letter.append(i) -for i in letter: -    for j in range(0, 26): -        if i == string[j]: -            tmp = j + n -            # print(tmp) -            if tmp > 25: -                tmp = tmp % 26 -            ans.append(string[tmp]) -# print(ans) +    tmp = ((ord(i) - 65 + n) % 26) + 65 +    ans.append(chr(tmp))