n=int(input())
my_string=input()
for char in my_string:
    num=ord(char)+(n%26)
    if num > 122:
        num=97+num-123
    print(chr(num),end="")