1. int 转 string
2. string 遍历
3. map使用
//package lxk;
import java.math.BigInteger;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class Main {
public static Map<Character, String> mp = new HashMap<Character, String>();
public static void init() {
mp.put('0',"ling");
mp.put('1', "yi");
mp.put('2', "er");
mp.put('3', "san");
mp.put('4', "si");
mp.put('5', "wu");
mp.put('6', "liu");
mp.put('7', "qi");
mp.put('8', "ba");
mp.put('9', "jiu");
}
public static int work(String s) {
int res = 0;
for(int i = 0; i < s.length(); ++i) {
res += (s.charAt(i)-'0');
}
return res;
}
public static void print(int ans) {
String s = String.valueOf(ans);
for(int i = 0; i < s.length(); ++i) {
if(i > 0) System.out.print(' ');
System.out.print(mp.get(s.charAt(i)));
}
}
public static void main(String[] args) {
init();
Scanner in = new Scanner(System.in);
String s = in.nextLine();
int ans = work(s);
//System.out.println(ans);
print(ans);
}
}