N = int(eval(input()))

S = eval(input())

alphabet = 'ZABCDEFGHIJKLMNOPQRSTUVWXY'

alphabet_num = {st: num for num, st in enumerate(alphabet)}

alphabet_list = [st for st in alphabet]



output = ''

for s in S:

  num = (alphabet_num[s] + N) % 26

  output += alphabet_list[num]

print(output)
N = int(input())

S = input()

alphabet = 'ZABCDEFGHIJKLMNOPQRSTUVWXY'

alphabet_num = {st: num for num, st in enumerate(alphabet)}

alphabet_list = [st for st in alphabet]



for s in S:

  num = (alphabet_num[s] + N) % 26

  print(alphabet_list[num], end='')

N = int(eval(input()))
S = eval(input())
alphabet = "ZABCDEFGHIJKLMNOPQRSTUVWXY"
alphabet_num = {st: num for num, st in enumerate(alphabet)}
alphabet_list = [st for st in alphabet]
output = ""
for s in S:
    num = (alphabet_num[s] + N) % 26
    output += alphabet_list[num]
print(output)

N = int(input())
S = input()
alphabet = "ZABCDEFGHIJKLMNOPQRSTUVWXY"
alphabet_num = {st: num for num, st in enumerate(alphabet)}
alphabet_list = [st for st in alphabet]
for s in S:
    num = (alphabet_num[s] + N) % 26
    print(alphabet_list[num], end="")

-N = int(eval(input())) -S = eval(input()) +N = int(input()) +S = input() -output = "" -    output += alphabet_list[num] -print(output) +    print(alphabet_list[num], end="")