11759: 英文数字

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:0

Description

在这个问题中,你将会给出一个或多个用英文表示的数。你的任务就是把这些英文标识的数翻译为阿拉伯数字。
给定数字的范围从-999,999,999到999,999,999.以下一些详细的英文单词表,你的程序将会使用到:
negative,zero,one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve,thirteen,fourteen,fifteen,
sixteen,seventeen,eighteen,nineteen,twenty,thirty,forty,sixty,seventy,eighty,ninety,hundred,thousand,million.

Input

输入注意事项:
1、负数将会被描述为negative。

2、当“thousand”可以使用时,“hundred”不能用。例如:1500会被描述为“one thousand five hundred”而不是"fifteen hundred"

结尾以空行结束

Output

每个结果占一行

Sample Input Copy

six
negative seven hundred twenty nine
one million one hundred one
eight hundred fourteen thousand twenty two

Sample Output Copy

6
-729
1000101
814022