Esoteric Confession

0

0 votes
Problem

While FA was busy recovering The KEY,his friend Dubey found something interesting on Google called INTERCAL.

Knowing that you all are there to help him find The Key,he moved on to explore INTERCAL.

Within an hour or so he came with an alternative of The KEY,He wrote a program in INTERCAL which is as follows...

DO ,8 <- #10
PLEASE DO ,8 SUB #1 <- #126
DO ,8 SUB #2 <- #192 
DO ,8 SUB #3 <- #48 
DO ,8 SUB #4 <- #96
PLEASE DO ,8 SUB #5 <- #160 
DO ,8 SUB #6 <- #192
DO ,8 SUB #7 <- #48
DO ,8 SUB #8 <- #8
DO ,8 SUB #9 <- #168 
DO ,8 SUB #10 <- #72 
PLEASE READ OUT ,8
PLEASE GIVE UP

Its output can be seen as "ACILIKEYOU" (quotes for clarity).

He is a bit lazy,but still he calculated those numbers manually.

He thinks he could write a program ( definitely not in INTERCAL) in which he could just give a string

composed of alphabets,numbers and special characters and it would give out the numbers which can be used in INTERCAL for printing the same string.

But again he is A bit lazy so I guess you will have to do the job.

Input:

First line of input contains N, no. of test cases. The next line contains the input string.

Output:

For each test case you need to output the sequence of numbers separated by blank space.

Constraint:

1<=N<=100

1<=Length of input string<=20

Time Limit: 1
Memory Limit: 256
Source Limit:
Explanation

In Sample Input, 1 represent the number of test case.Next line represent the string corresponding to which we have to find the numbers corresponding to each character. In Sample Output, For each string the numbers should be separated by single blank space and a newline between two strings output.

Editor Image

?