#C9078. Decode Message from Alphabet Positions
Decode Message from Alphabet Positions
Decode Message from Alphabet Positions
You are given an integer n and a list of n integers. Each integer represents the position of a letter in the English alphabet (i.e., 1 corresponds to 'a', 2 to 'b', and so on). Your task is to decode the message by converting each integer into its corresponding lowercase letter.
The mapping is given by the formula:
$$\text{letter} = \text{chr}(number+96)$$
For example, if the input is 4
and the list [1, 20, 1, 20]
, the decoded message would be "atat".
inputFormat
The first line of input contains an integer n, representing the number of elements in the encoded message. The second line contains n space-separated integers, each in the range [1,26], representing positions of the letters in the alphabet.
outputFormat
Output the decoded string. The string is formed by converting each integer into its corresponding lowercase letter.
## sample4
1 20 1 20
atat