DSH - detective sherlock holmes

no tags 

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


hide comments
priyanka kumari: 2016-01-31 03:35:37

the total number of individual numeric values that are greater than q’s numeric value is the required solution
Can you please elaborate this line???????

farhan=>hey priyanka, first u have to find the value of q and then u have to find total number of character whose have greater than value then q.
so that will be answer.

Last edit: 2016-02-01 08:31:26
ashish kumar: 2016-01-29 15:57:26

Why i am getting WA. is there any problem in numeric values of char

lalit_nit2: 2016-01-29 14:54:47

Thanks wisfaq....Its Really Irritating to know But "out" doesnt exist here :/ ...........Farhan bro you shoud see it :P

Last edit: 2016-01-29 14:55:21
wisfaq: 2016-01-29 14:48:32

The string 'out' doesn't occur.
Process until eof instead.

queen_123: 2016-01-29 12:46:39

it will take any string(3<l<=26) and u will decode the string's each character into their respective numeric(according to test case which are given) value and then count those number whose respective value is greater than specific character q's value.


just use pen and paper and write all a to z characters then compare.

Last edit: 2016-01-29 12:48:42
Vipul Srivastava: 2016-01-29 09:51:23

Please explain the sample input output.

azam_9: 2016-01-28 22:16:13

unable to understand the Q...


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