You are given a string which is actually the encrypted password.Your task is to decrypt back the original password.
Input Description:
First line contains the encoded password Second line contains 10 unique characters
Output Description:
Obtained password by reverting the algorithm. Print -1 if there is any error in the inputs.
Sample Input :
0|1|2|43|14|5|6|7|308|29||0149
*Acf$Zd&T@
Sample Output :
@@Z$$