n=int(input()) s=input() c="abcdefghijklmnopqrstuvwxyz" r=[] for i in range(len(s)): x=c.find(s[i]) r.append(c[(x+n)%26]) print(''.join(r))