import java.util.*;
public class Main {
private static Map<Character, String> map = new HashMap<Character, String>() {{
put('0', "零");
put('1', "壹");
put('2', "贰");
put('3', "叁");
put('4', "肆");
put('5', "伍");
put('6', "陆");
put('7', "柒");
put('8', "捌");
put('9', "玖");
}};
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
String money = sc.next();
String[] split = money.split("\\.");
// 整数位
String intMoney = split[0];
// 小数位
String decimal = split[1];
StringBuilder decimalBuilder = new StringBuilder();
if (decimal.equals("00")) {
decimalBuilder.append("整");
} else {
char corner = decimal.charAt(0);
char minute = decimal.charAt(1);
if (corner != '0') {
decimalBuilder.append(map.get(corner) + "角");
}
if (minute != '0') {
decimalBuilder.append(map.get(minute) + "分");
}
}
if (intMoney.equals("0")) {
System.out.println("人民币" + decimalBuilder);
} else {
StringBuilder intBuilder = new StringBuilder();
int length = intMoney.length();
for (int i = length - 1; i >= 0; i--) {
int j = length - i;
char c = intMoney.charAt(i);
if (c == '0') {
intBuilder.insert(0, "零");
continue;
}
String number = map.get(c);
if (j % 9 == 0) {
number += "亿";
} else if (j % 5 == 0) {
number += "万";
} else if (j % 4 == 0) {
number += "仟";
} else if (j % 2 == 0) {
if (c == '1') {
number = "拾";
} else {
number += "拾";
}
} else if (j % 7 == 0 || j % 3 == 0) {
number += "佰";
}
intBuilder.insert(0, number);
}
String result = "人民币" + intBuilder + "元" + decimalBuilder;
result = result.replaceAll("[零]{1,}", "零");
System.out.println(result);
}
}
}
}