from collections import deque



def main():

    N = int(eval(input()))

    S = deque(eval(input()))

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



    ans = deque()



    while len(S)>0:

        s = S.popleft()

        i = A.index(s)+N

        ans.append(A[i%26])



    print((''.join(ans)))



if __name__ == '__main__':

    main()
def main():

    N = int(eval(input()))

    S = list(ord(x) - ord('A') for x in eval(input()))

    ans = list(chr((N+x)%26 + ord('A')) for x in S)



    print((''.join(ans)))



if __name__ == '__main__':

    main()
from collections import deque


def main():
    N = int(eval(input()))
    S = deque(eval(input()))
    A = [
        "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",
    ]
    ans = deque()
    while len(S) > 0:
        s = S.popleft()
        i = A.index(s) + N
        ans.append(A[i % 26])
    print(("".join(ans)))


if __name__ == "__main__":
    main()

def main():
    N = int(eval(input()))
    S = list(ord(x) - ord("A") for x in eval(input()))
    ans = list(chr((N + x) % 26 + ord("A")) for x in S)
    print(("".join(ans)))


if __name__ == "__main__":
    main()

-from collections import deque - - -    S = deque(eval(input())) -    A = [ -        "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", -    ] -    ans = deque() -    while len(S) > 0: -        s = S.popleft() -        i = A.index(s) + N -        ans.append(A[i % 26]) +    S = list(ord(x) - ord("A") for x in eval(input())) +    ans = list(chr((N + x) % 26 + ord("A")) for x in S)