#include <cstdio>
#include <iostream>
using namespace std;
string translate(int num){
string ans;
int s = num/10;
int g = num%10;
if (num<=20) {
switch (num) {
case 1:
ans = "one";
break;
case 2:
ans = "two";
break;
case 3:
ans = "three";
break;
case 4:
ans = "four";
break;
case 5:
ans = "five";
break;
case 6:
ans = "six";
break;
case 7:
ans = "seven";
break;
case 8:
ans = "eight";
break;
case 9:
ans = "nine";
break;
case 10:
ans = "ten";
break;
case 11:
ans = "eleven";
break;
case 12:
ans = "twelve";
break;
case 13:
ans = "thirteen";
break;
case 14:
ans = "fourteen";
break;
case 15:
ans = "fifteen";
break;
case 16:
ans = "sixteen";
break;
case 17:
ans = "seventeen";
break;
case 18:
ans = "eighteen";
break;
case 19:
ans = "nineteen";
break;
case 20:
ans = "twenty";
break;
default:
ans = "zero";
break;
}
} else {
switch (s) {
case 2:
ans = "twenty";
break;
case 3:
ans = "thirty";
break;
case 4:
ans = "fourty";
break;
case 5:
ans = "fifty";
break;
default:
ans = "zero";
break;
}
switch (g) {
case 1:
ans += " one";
break;
case 2:
ans += " two";
break;
case 3:
ans += " three";
break;
case 4:
ans += " four";
break;
case 5:
ans += " five";
break;
case 6:
ans += " six";
break;
case 7:
ans += " seven";
break;
case 8:
ans += " eight";
break;
case 9:
ans += " nine";
break;
default:
ans += " zero";
break;
}
}
return ans;
}
int main(){
int h,m;
ios::sync_with_stdio(false);
scanf("%d%d",&h,&m);
if (m==0) {
string s = translate(h);
cout<<s<<" o'clock"<<endl;
return 0;
}
//
string hour,min;
hour = translate(h);
min = translate(m);
cout<<hour<<" "<<min<<endl;
return 0;
}
网友评论