P1914 Xiao Shutong — Caesar Cipher

Background

A newbie got hooked on "Xiao Shutong". One day, when logging in, he forgot his password (he hadn't bound an email or phone), so he turned to you for help.

Description

Although he forgot the password, he still remembers that it is composed of a string. The password is formed by shifting each letter in the original string (consisting of at most 50 lowercase letters) forward by $n$ positions. The letter `z` is followed by `a`, wrapping around. Now that he has the original string before shifting and the value of $n$, please compute the password.

Input Format

The first line: $n$. The second line: a string of letters before shifting.

Output Format

One line, which is this newbie's password.

Explanation/Hint

The string length is $\le 50$, and $1 \leq n \leq 26$. Translated by ChatGPT 5