DSH - 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


Added by:Khansaab
Date:2016-01-28
Time limit:0.100s-2s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ADA95 ASM64 C99 D D-DMD GOSU HASK ICK JS-MONKEY NICE NIM PICO PIKE SCALA CHICKEN WHITESPACE
Resource:own

hide comments
2022-02-14 21:28:26
best problem
2018-01-07 21:56:53 Simes
Sherlock was known for his logic, not the guesswork needed for this nonsense. No need to read til EOF, stop after reading a word of three characters or fewer.

Last edit: 2018-01-07 23:04:03
2018-01-05 15:32:45
what the hell ,remeber "." after "no one" it gives me 1WA
2017-03-03 20:54:04
thanks @shubham_cs_iet. your comment helped me.

Last edit: 2017-03-03 20:55:30
2017-02-18 09:15:12
AC in one go!!
2017-01-22 15:44:23
Got 6 time runtime error (SIGXFSZ),,,,
Ac after using while(!feof(stdin))
2017-01-21 15:25:42
Scan till EOF otherwise u will get tle;
AC after 1 tle.....
2017-01-15 21:37:33
That period(.) after "no one" costed me 2 WA....
2017-01-13 20:50:50
while(!feof(stdin)) would help in scanning till EOF.
assume m=28, t=26...:):)
2017-01-06 15:11:18
0.6 points for this problem...
m=28,t=26.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.