One Two


Submit solution

Points: 2
Time limit: 1.0s
Java 8 7.0s
Python 7.0s
Memory limit: 2M
Java 8 64M
Python 10M

Author:
Problem type

Your little brother is learning to write. He knows how to write every three-letters numbers: one, two, six and ten. But as your little brother is still young, he still makes some mistakes: sometimes, one letter is wrong. Despite that, you wish to write a program that recognizes his words. It is guaranteed that each word has a unique interpretation: your little brother is a well-behaved man, and never writes words such as "twn".

Input

The input consists of an indefinite number of lines. Each line contains a single word made of three lower case letters. For each word, it as guaranteed that at most one letter differs from a real English number, and that the interpretation is unique. There are at most 30 words per test case.

Output

For each line, simply output the interpretation in digital representation.

Sample input

owe
too
sox
ton

Sample output

1
2
6
10

Comments

There are no comments at the moment.