alpha2int = lambda x: ord(x) - ord("A") + 1

def int2alpha(x):

    if  x % 26 != 0:

        x = x % 26 

    else:

        x = 26

    return chr(x + 64)



N = int(eval(input()))

S = str(eval(input()))



out_s = ""

for i in range(len(S)):

    out_s += int2alpha(alpha2int(S[i]) + N)

    

print(out_s)
def main():

    n = int(eval(input()))

    n = n % 26

    s = eval(input())

    s_list = [d for d in s]

    new_s = ""

    new_ord_base = 64

    for i in s_list:

        new_ord = ord(i) + n

        if new_ord > 90:

            new_ord = new_ord % 90 + new_ord_base

        new_s += chr(new_ord)



    print(new_s)





if __name__ == "__main__":

    main()

alpha2int = lambda x: ord(x) - ord("A") + 1


def int2alpha(x):
    if x % 26 != 0:
        x = x % 26
    else:
        x = 26
    return chr(x + 64)


N = int(eval(input()))
S = str(eval(input()))
out_s = ""
for i in range(len(S)):
    out_s += int2alpha(alpha2int(S[i]) + N)
print(out_s)

def main():
    n = int(eval(input()))
    n = n % 26
    s = eval(input())
    s_list = [d for d in s]
    new_s = ""
    new_ord_base = 64
    for i in s_list:
        new_ord = ord(i) + n
        if new_ord > 90:
            new_ord = new_ord % 90 + new_ord_base
        new_s += chr(new_ord)
    print(new_s)


if __name__ == "__main__":
    main()

-alpha2int = lambda x: ord(x) - ord("A") + 1 +def main(): +    n = int(eval(input())) +    n = n % 26 +    s = eval(input()) +    s_list = [d for d in s] +    new_s = "" +    new_ord_base = 64 +    for i in s_list: +        new_ord = ord(i) + n +        if new_ord > 90: +            new_ord = new_ord % 90 + new_ord_base +        new_s += chr(new_ord) +    print(new_s) -def int2alpha(x): -    if x % 26 != 0: -        x = x % 26 -    else: -        x = 26 -    return chr(x + 64) - - -N = int(eval(input())) -S = str(eval(input())) -out_s = "" -for i in range(len(S)): -    out_s += int2alpha(alpha2int(S[i]) + N) -print(out_s) +if __name__ == "__main__": +    main()