401696: GYM100514 H Peace of AmericaReunion

Memory Limit:256 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

H. Peace of AmericaReuniontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard output

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.

ExamplesInput
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

Source/Category

加入题单

上一题 下一题 算法标签: