from string import ascii_lowercase def main(): N = int(input()) S = input() forward = ascii_lowercase reverse = ascii_lowercase[::-1] letter_dict = { f_letter: r_letter for f_letter, r_letter in zip(forward, reverse) } backward_word = "".join(letter_dict[letter] for letter in S) print(backward_word) if __name__ == "__main__": main()