H. Peace of AmericaReunion
time limit per test
1 second
memory limit per test
256 megabytes
input
stdin
output
stdout

You are given an encrypted string, encrypted using a certain algorithm. Decrypt it !

Input

The first line of input contains 26 integers a1, ..., a26 separated by space (1 ≤ ai ≤ 105).

Next lines, each line contains an integer between 1 and 105 inclusive.

Output

Print a single string in a single line.

Examples
Input
1 0 1 0 1 0 0 2 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1
3
1
6
2
7
4
5
Output
charzeh
Input
0 0 0 0 1 1 0 0 1 0 0 0 0 0 1 0 0 0 1 0 1 0 0 0 1 0
5
6
7
2
4
3
1
Output
yousefi
Input
0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 1 0 0 0 0 0 0
1
2
3
Output
mmt