n = int(input())
s = input()
s_new = ''
for char in s:
    s_new += chr((ord(char)-ord('a')+n)%26+ord('a'))
print(s_new)