#ABC146 B

si = lambda: eval(input())

ni = lambda: int(eval(input()))

nm = lambda: list(map(int, input().split()))

nl = lambda: list(map(int, input().split()))



N = ni()

S = si()

# SS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

# SSS = 'NOPQRSTUVWXYZABCDEFGHIJKLM'

S1 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ'

ans = []



for i,s in enumerate(S) :

    idx = S1.find(s)

    idx += N

    ans.append(S1[idx:idx+1])



aans = ''



for a in ans:

    aans += a



print(aans)
# B 

si = lambda: eval(input())

ni = lambda: int(eval(input()))

nm = lambda: list(map(int, input().split()))

nl = lambda: list(map(int, input().split()))

n=ni()

s=si()

ans=''

for ss in s:

    ans+=chr((ord(ss)+n-65)%26+65)

print(ans)



# ABC146 B
si = lambda: eval(input())
ni = lambda: int(eval(input()))
nm = lambda: list(map(int, input().split()))
nl = lambda: list(map(int, input().split()))
N = ni()
S = si()
# SS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
# SSS = 'NOPQRSTUVWXYZABCDEFGHIJKLM'
S1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"
ans = []
for i, s in enumerate(S):
    idx = S1.find(s)
    idx += N
    ans.append(S1[idx : idx + 1])
aans = ""
for a in ans:
    aans += a
print(aans)

# B
si = lambda: eval(input())
ni = lambda: int(eval(input()))
nm = lambda: list(map(int, input().split()))
nl = lambda: list(map(int, input().split()))
n = ni()
s = si()
ans = ""
for ss in s:
    ans += chr((ord(ss) + n - 65) % 26 + 65)
print(ans)

-# ABC146 B +# B -N = ni() -S = si() -# SS = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' -# SSS = 'NOPQRSTUVWXYZABCDEFGHIJKLM' -S1 = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ" -ans = [] -for i, s in enumerate(S): -    idx = S1.find(s) -    idx += N -    ans.append(S1[idx : idx + 1]) -aans = "" -for a in ans: -    aans += a -print(aans) +n = ni() +s = si() +ans = "" +for ss in s: +    ans += chr((ord(ss) + n - 65) % 26 + 65) +print(ans)