n = int(input())

s = input()

uppercase = ['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']

t = ''

for ch in s:

    ind = uppercase.index(ch)

    ind = (ind + n) % 26

    t += uppercase[ind]

print(t)
s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

n= int(input())

x = input()

a = ord('A')

print(''.join([s[(ord(c) - a + n) % 26] for c in x]))
n = int(input())
s = input()
uppercase = [
    "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",
]
t = ""
for ch in s:
    ind = uppercase.index(ch)
    ind = (ind + n) % 26
    t += uppercase[ind]
print(t)

s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
n = int(input())
x = input()
a = ord("A")
print("".join([s[(ord(c) - a + n) % 26] for c in x]))

+s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" -s = input() -uppercase = [ -    "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", -] -t = "" -for ch in s: -    ind = uppercase.index(ch) -    ind = (ind + n) % 26 -    t += uppercase[ind] -print(t) +x = input() +a = ord("A") +print("".join([s[(ord(c) - a + n) % 26] for c in x]))