Turn the number in English to Arabic numerals.(hw5_2)

Problem Description
Please translate the number in English to Arabic numerals.

Input
The number in English(no 'AND' in the string) (the number is less than two billion)

Every input has 'END' in the end.

Output
The Arabic numeral

Sample Input
ONE HUNDRED THIRTY TWO END
TWO THOUSAND THREE HUNDRED FORTY FIVE END
ONE BILLION NINE END
Sample Output
132
2345
1000000009