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 !
InputThe 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.
OutputPrint a single string in a single line.
ExamplesInput1 0 1 0 1 0 0 2 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1Output
3
1
6
2
7
4
5
charzehInput
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 0Output
5
6
7
2
4
3
1
yousefiInput
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 0Output
1
2
3
mmt