QOJ.ac

QOJ

実行時間制限: 1 s メモリ制限: 32 MB 満点: 10 難易度: [表示]

#13511. Kamil

統計

Some children cannot pronounce all letters, while others sometimes pronounce letters correctly and sometimes do not. Kamil sometimes says T instead of K, but he never says K instead of T. Similarly, he sometimes says D instead of G. Furthermore, he sometimes says L instead of R, and at other times he says F. Of course, sometimes he happens to pronounce the letter correctly. Kamil's father always wonders how many actual words the word his son uttered could mean (he does not consider whether they are correct words in the Polish language).

Task

Write a program that:

  • reads what Kamil said from standard input,
  • calculates how many different words this could mean,
  • prints the result to standard output.

Input

The first and only line of input contains a non-empty word spoken by Kamil. For simplicity, we assume that the word is written using only uppercase English letters and its length is at most 20.

Output

Your program should print (to standard output) only one line containing a single integer equal to the number of different words that the word spoken by Kamil could mean.

Examples

Input 1

FILIPEK

Output 1

4

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.