n = int(eval(input()))

s = eval(input())



ans = ""



for i in range(len(s)):

    ans += chr(ord("A") +(((ord(s[i])+n)-ord("A")) % 26))



print(ans)
def main():

    n = int(eval(input()))

    # n, k = map(int, input().split())

    # h = list(map(int, input().split()))

    s = eval(input())



    ans = ""



    for i in s:

        ans += chr((ord(i) - ord("A") + n)% 26 + ord("A"))



    print(ans)





if __name__ == '__main__':

    main()

n = int(eval(input()))
s = eval(input())
ans = ""
for i in range(len(s)):
    ans += chr(ord("A") + (((ord(s[i]) + n) - ord("A")) % 26))
print(ans)

def main():
    n = int(eval(input()))
    # n, k = map(int, input().split())
    # h = list(map(int, input().split()))
    s = eval(input())
    ans = ""
    for i in s:
        ans += chr((ord(i) - ord("A") + n) % 26 + ord("A"))
    print(ans)


if __name__ == "__main__":
    main()

-n = int(eval(input())) -s = eval(input()) -ans = "" -for i in range(len(s)): -    ans += chr(ord("A") + (((ord(s[i]) + n) - ord("A")) % 26)) -print(ans) +def main(): +    n = int(eval(input())) +    # n, k = map(int, input().split()) +    # h = list(map(int, input().split())) +    s = eval(input()) +    ans = "" +    for i in s: +        ans += chr((ord(i) - ord("A") + n) % 26 + ord("A")) +    print(ans) + + +if __name__ == "__main__": +    main()