Please enter your email address or userHandle.
CBI agents are investigating a case in which they came across certain names of the culprits.They decided to encode the names into the number format.
"Riya" is encoded as "729611390","Sumitha" as "73108101981109993" ,"Anandita" as "55101891039410011294" and so on...Help them to encode the names.
First line of input contains an integer T denoting the number of test cases.T lines follow each of which containes a string S denoting the name of the culprits.
For each test case,print the encoded Integer in a new line.
1<=T<=100 and Names contains only english alphabets
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.