spoj#DSH. detective sherlock holmes
detective sherlock holmes
Detective Sherlock Holmes undertook a case, he found a clue against the culprit. He got a clue in lower case letters and he predicts that if he decodes these characters into respective numeric value, then he would find the culprit. the total number of individual numeric values that are greater than q’s numeric value is the required solution. Vexed of solving the case he is asking for your help, so please help him.
Input
- There is several test cases and the last case is contained by “length of clue<=3”,
- each line contains a string(should contain only lowercase letters) (length of clue is(3 <l<=26)) .
Output
For each test case print two lines, the former containing the numeric value of string and the later containing the total number whose value is greater than q if not then print ”no one.”
Example
Input:aknpz
luxo
aven
abcds
out
Output:16 26 20 22 23
1
27 18 21 21
1
16 19 20 20
no one.
16 17 18 19 25
1
Problem Setter:-Farhan khan