Your task is to write a program that computes the value of a given message. To compute it, we will consider that only the letters have value, and that each letter has greater value the more infrequent it is, as can be seen in this table:
|d i n r
|c l t u
|b f g h j q v x y z
The input consists of a sequence of characters, which include exclusively lowercase letters, spaces and newlines.
Your program must print the total value of the message, computed as the sum of the value of all its letters.
is a chinese wok
i have seen things you people would not believe attack ships on fire off the shoulder of orion i watched c beams glitter in the dark near the tannhauser gate all those moments will be lost in time like tears in rain time to die
hi how are you