您的位置:首页 > 其它

每日一题D 2015-6-1 17:34

2015-06-01 17:33 423 查看

这个题怎么说呢,太简单了,实在没什么好说的!
#include<stdio.h>
#include<math.h>
#include<stdlib.h>

int main()
{
    int n;
    scanf("%d", &n);
    char* a[30] = {"zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"};
    char* b[15] = {"twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"};
    if( n < 20)
        printf("%s\n", a
);
    else
    {
        if(n % 10 == 0)
            printf("%s\n",b[(n/10) - 2]);
        else
            printf("%s-%s\n",b[(n/10) - 2], a[n%10]);

    }
    return 0;
}


Description

Today Tavas got his test result as an integer score and he wants to share it with his girlfriend, Nafas.

His phone operating system is Tavdroid, and its keyboard doesn't have any digits! He wants to share his score with Nafas via text, so he has no choice but to send this number using words.



He ate coffee mix without water again, so right now he's really messed up and can't think.

Your task is to help him by telling him what to type.

Input

The first and only line of input contains an integer s (0 ≤ s ≤ 99), Tavas's score.

Output

In the first and only line of output, print a single string consisting only from English lowercase letters and hyphens ('-'). Do not use spaces.

Sample Input

Input
6


Output
six


Input
99


Output
ninety-nine


Input
20


Output
twenty


Hint

You can find all you need to know about English numerals in http://en.wikipedia.org/wiki/English_numerals .

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: