# -*- coding: utf-8 -*-

"""

Created on Tue Mar 10 21:49:13 2020



@author: Kanaru Sato

"""



N = int(eval(input()))

s = eval(input())



dict = {'A': 1, 'B': 2, 'C': 3, 'D': 4, 'E': 5, 'F': 6, 'G': 7, 'H': 8, 'I': 9, 'J': 10, 'K': 11, 'L': 12, 'M': 13, 'N': 14, 'O': 15, 'P': 16, 'Q': 17, 'R': 18, 'S': 19, 'T': 20, 'U': 21, 'V': 22, 'W': 23, 'X': 24, 'Y': 25, 'Z': 0}

slist = []

[slist.append(s[i]) for i in range(0,len(s))]



for i in range(0, len(s)):

    n = dict[slist[i]]

    n = (n+N)%26

    slist[i] = [k for k in list(dict.keys()) if dict[k]==n][0]



ans = ""

for i in range(0,len(slist)):

    ans = ans+slist[i]

print(ans)
# -*- coding: utf-8 -*-

"""

Created on Wed Mar 11 14:41:22 2020



@author: Kanaru Sato

"""



N = int(eval(input()))

s = list(eval(input()))



loop = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ"*2)



for i in range(len(s)):

    s[i] = loop[loop.index(s[i])+N]



print(("".join(s)))
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 10 21:49:13 2020
@author: Kanaru Sato
"""
N = int(eval(input()))
s = eval(input())
dict = {
    "A": 1,
    "B": 2,
    "C": 3,
    "D": 4,
    "E": 5,
    "F": 6,
    "G": 7,
    "H": 8,
    "I": 9,
    "J": 10,
    "K": 11,
    "L": 12,
    "M": 13,
    "N": 14,
    "O": 15,
    "P": 16,
    "Q": 17,
    "R": 18,
    "S": 19,
    "T": 20,
    "U": 21,
    "V": 22,
    "W": 23,
    "X": 24,
    "Y": 25,
    "Z": 0,
}
slist = []
[slist.append(s[i]) for i in range(0, len(s))]
for i in range(0, len(s)):
    n = dict[slist[i]]
    n = (n + N) % 26
    slist[i] = [k for k in list(dict.keys()) if dict[k] == n][0]
ans = ""
for i in range(0, len(slist)):
    ans = ans + slist[i]
print(ans)

# -*- coding: utf-8 -*-
"""
Created on Wed Mar 11 14:41:22 2020
@author: Kanaru Sato
"""
N = int(eval(input()))
s = list(eval(input()))
loop = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ" * 2)
for i in range(len(s)):
    s[i] = loop[loop.index(s[i]) + N]
print(("".join(s)))

-Created on Tue Mar 10 21:49:13 2020 +Created on Wed Mar 11 14:41:22 2020 -s = eval(input()) -dict = { -    "A": 1, -    "B": 2, -    "C": 3, -    "D": 4, -    "E": 5, -    "F": 6, -    "G": 7, -    "H": 8, -    "I": 9, -    "J": 10, -    "K": 11, -    "L": 12, -    "M": 13, -    "N": 14, -    "O": 15, -    "P": 16, -    "Q": 17, -    "R": 18, -    "S": 19, -    "T": 20, -    "U": 21, -    "V": 22, -    "W": 23, -    "X": 24, -    "Y": 25, -    "Z": 0, -} -slist = [] -[slist.append(s[i]) for i in range(0, len(s))] -for i in range(0, len(s)): -    n = dict[slist[i]] -    n = (n + N) % 26 -    slist[i] = [k for k in list(dict.keys()) if dict[k] == n][0] -ans = "" -for i in range(0, len(slist)): -    ans = ans + slist[i] -print(ans) +s = list(eval(input())) +loop = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ" * 2) +for i in range(len(s)): +    s[i] = loop[loop.index(s[i]) + N] +print(("".join(s)))