n = int(input()) s = input() #数据输入及初始化 out = '' for c in s: out += chr((ord(c)-ord('a')+n)%26+ord('a')) #按位偏移 print(out) #输出结果