
你需要编写一个程序,使得对于输入的整数,输出其对应的英文单词。

具体地,规则如下:

三位数字看成一整体,每三位数后添加一个计数单位,从小到大依次为 thousand(千)、million(百万);

对于百万以下、千以上的数字,通用公式为

,其中

和

代表数字;

对于百万以上的数字,通用公式为

,其中

、

和

代表数字;

每三位数内部,十位和个位之间,需要添加 and ;特别地,若百位为

,则不添加。例如,

的英文为 one thousand two hundred
and thirty four ,

的英文为 one thousand thirty four 。

让我们再来看几个例子:


:twenty two ;


:one
hundred ;


:one
hundred and forty five ;


:one
thousand two
hundred and thirty four ;


:eight
thousand eighty eight ;


:four
hundred and eighty six
thousand six
hundred and sixty nine ;


:one million six
hundred and fifty two
thousand five
hundred and ten 。