import sys





def solve():

    readline = sys.stdin.buffer.readline

    mod = 10 ** 9 + 7

    n = int(readline())

    s = str(readline().rstrip().decode('utf-8'))

    al = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")

    ans = []

    for i in range(len(s)):

        for j in range(len(al)):

            if s[i] == al[j]:

                ans.append(al[(j+n) % 26])

                break

    print(("".join(ans)))





if __name__ == '__main__':

    solve()

import sys





def solve():

    readline = sys.stdin.buffer.readline

    mod = 10 ** 9 + 7

    n = int(readline())

    s = str(readline().rstrip().decode('utf-8'))

    ls = {i - 65: chr(i) for i in range(65, 91)}

    ans = []

    for i in range(len(s)):

        ans.append(ls[(ord(s[i]) - 65 + n) % 26])

    print(("".join(ans)))

    



if __name__ == '__main__':

    solve()

import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10**9 + 7
    n = int(readline())
    s = str(readline().rstrip().decode("utf-8"))
    al = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
    ans = []
    for i in range(len(s)):
        for j in range(len(al)):
            if s[i] == al[j]:
                ans.append(al[(j + n) % 26])
                break
    print(("".join(ans)))


if __name__ == "__main__":
    solve()

import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10**9 + 7
    n = int(readline())
    s = str(readline().rstrip().decode("utf-8"))
    ls = {i - 65: chr(i) for i in range(65, 91)}
    ans = []
    for i in range(len(s)):
        ans.append(ls[(ord(s[i]) - 65 + n) % 26])
    print(("".join(ans)))


if __name__ == "__main__":
    solve()

-    al = list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") +    ls = {i - 65: chr(i) for i in range(65, 91)} -        for j in range(len(al)): -            if s[i] == al[j]: -                ans.append(al[(j + n) % 26]) -                break +        ans.append(ls[(ord(s[i]) - 65 + n) % 26])