n = int(eval(input()))

s = eval(input())

x = []

import string

a = list(string.ascii_uppercase)*2

#print(a)

for i in s:

    j = 0

    b = a.index(i)

    j = b + n

    x.append(a[j])

    

print((''.join(x)))
n = int(eval(input()))

s = eval(input())

x = []

import string

a = list(string.ascii_uppercase)*2

#print(a)

for i in s:

    #j = 0

    b = a.index(i)

    j = b + n

    x.append(a[j])

    

print((''.join(x)))
n = int(eval(input()))
s = eval(input())
x = []
import string

a = list(string.ascii_uppercase) * 2
# print(a)
for i in s:
    j = 0
    b = a.index(i)
    j = b + n
    x.append(a[j])
print(("".join(x)))

n = int(eval(input()))
s = eval(input())
x = []
import string

a = list(string.ascii_uppercase) * 2
# print(a)
for i in s:
    # j = 0
    b = a.index(i)
    j = b + n
    x.append(a[j])
print(("".join(x)))

-    j = 0 +    # j = 0