N = int(eval(input()))

S = list(eval(input()))



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

answer = []

for s in S:

    number = alphabet.index(s)

    while number + N >= 26:

        number = number - 26 

    answer.append(alphabet[number+N])

print((''.join(answer)))

def minus26(idx):

    while idx >= 26:

        idx = idx - 26

    return idx

    

N = int(eval(input()))

S = list(eval(input()))



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



S_idx = [alphabet.index(s)+N for s in S] 

S_idx = [minus26(idx) for idx in S_idx]

print((''.join([alphabet[idx] for idx in S_idx])))

N = int(eval(input()))
S = list(eval(input()))
alphabet = [
    "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",
]
answer = []
for s in S:
    number = alphabet.index(s)
    while number + N >= 26:
        number = number - 26
    answer.append(alphabet[number + N])
print(("".join(answer)))

def minus26(idx):
    while idx >= 26:
        idx = idx - 26
    return idx


N = int(eval(input()))
S = list(eval(input()))
alphabet = [
    "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",
]
S_idx = [alphabet.index(s) + N for s in S]
S_idx = [minus26(idx) for idx in S_idx]
print(("".join([alphabet[idx] for idx in S_idx])))

+def minus26(idx): +    while idx >= 26: +        idx = idx - 26 +    return idx + + -answer = [] -for s in S: -    number = alphabet.index(s) -    while number + N >= 26: -        number = number - 26 -    answer.append(alphabet[number + N]) -print(("".join(answer))) +S_idx = [alphabet.index(s) + N for s in S] +S_idx = [minus26(idx) for idx in S_idx] +print(("".join([alphabet[idx] for idx in S_idx])))