N = int(input()) S = input() d = {} alphabet = "abcdefghijklmnopqrstuvwxyz" for i, s in enumerate(alphabet): d[s] = i ans = "" for s in S: idx = d[s] ans += alphabet[25-idx] print(ans)