KAMIL - Kamil

no tags 

Some kids cannot pronounce all letters, some of them they sometimes pronounce correctly and sometimes incorrectly. Kamil sometimes says T instead of K, but he never says K instead of T. Similarly he sometimes says D instead of G. Instead of R he sometimes says L and sometimes F. Of course it happens that he pronounces the letter correctly. Kamil's father always thinks how many words can mean the word spoken by his son (it doesn't matter if they are real English words).

Task

Write a program which

  • reads from standard input the words spoken by Kamil
  • counts how many different words can that mean
  • writes the outcome on standard output

 

Input

Ten test cases (given one under another, you have to process all!). Every test case is a single line - a word spoken by Kamil. Only 26 capital leters are used. The length of the word is at most 20.

Output

For every testcase write an integer in a single line with a single integer, denoting the number of words which Kamil's word can mean.

Score

The score awarded to your program is the number of bytes the source code you submit. The fewer points you score, the better. Submissions are not allowed to exceed 256 bytes.

Remark. It may turn out impossible to solve this problem in some languages.

Example

Input:
FILIPEK
[and 9 test cases more]

Output:
4
[and 9 test cases more]


hide comments
cryptcat: 2019-03-01 18:57:55

175 C#

mkolibaba: 2019-02-04 16:19:49

144 in F#

eliee: 2019-02-01 09:52:15

213 in Java.

starc_208: 2019-01-30 17:43:49

i got 221 in c++,just compressed the code,

akbar_1214: 2018-11-30 17:37:32

251 in c++

wrzoboo: 2018-06-12 15:49:42

I started learning python exactly 20 days ago. Got 55 in python3, I'd love to know the solutions of those 17 guys above me :o.

imkiller: 2018-06-01 13:40:09

143 Python3

shivank_1404: 2018-05-27 22:42:54

The result is showing 215 what does that mean?

shubhkamal: 2018-03-19 09:43:25

test

ajsk201: 2017-12-15 20:27:27

161 in c++
bleh


Added by:Adam Dzedzej
Date:2004-06-08
Time limit:3s
Source limit:256B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: NODEJS OBJC PERL6 SQLITE VB.NET
Resource:Internet Contest Pogromcy Algorytmow (Algorithm Tamers) Round I, 2003