# 题目

0:zero, 1: one, 2:two, 3:three, 4:four, 5:five, 6:six, 7:seven, 8:eight, 9:nine, 10:ten, 11:eleven, 12:twelve, 13:thirteen, 14:fourteen, 15:fifteen, 16:sixteen, 17:seventeen, 18:eighteen, 19:nineteen, 20:twenty。

30读作thirty，40读作forty，50读作fifty。

0 15

zero fifteen

# 代码

import java.util.HashMap;
import java.util.Scanner;

public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
HashMap<Integer,String> map = new HashMap<>();
String digit[] = {"zero","one","two","three","four","five","six","seven",
"eight","nine","ten","eleven","twelve","thirteen","fourteen",
"fifteen","sixteen","seventeen","eighteen","nineteen",
"twenty","twenty one","twenty two","twenty three"};
for(int i = 0;i<=23;i++)
map.put(i, digit[i]);
map.put(30, "thirty");
map.put(40, "forty");
map.put(50, "fifty");

int h = in.nextInt(),m = in.nextInt();
String ans = "";
if(m == 0)
{
ans = map.get(h)+" o'clock";
}
else if(0<m&&m<=20 || m%10==0)
{
ans = map.get(h) +" "+ map.get(m);
}
else
{
ans = map.get(h)+" "+map.get(m/10*10)+" "+map.get(m%10);
}
System.out.println(ans);
}
}