import java.util.*;
// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
// 注意 hasNext 和 hasNextLine 的区别
while(in.hasNextLine()){
//将数据分成两部分,小数点前和后
String[] ss = in.nextLine().split("\\.");
Map<Integer,String> map = new HashMap<>();
List<String> dan = new ArrayList<>();
//先将数字与中文的映射写好
map.put(1,"壹");
map.put(2,"贰");
map.put(3,"叁");
map.put(4,"肆");
map.put(5,"伍");
map.put(6,"陆");
map.put(7,"柒");
map.put(8,"捌");
map.put(9,"玖");
//转成字符数组
char[] chs1 = ss[0].toCharArray();
int len = chs1.length;
//先加上人民币
String str = "人民币";
int n = len / 4;
int m = len % 4;
//寻找对应的单位
if(n == 1 && m > 0)dan.add("万");
if(n == 3 && m > 0)dan.add("亿");
if(n == 4 && m > 0)dan.add("万亿");
int j = 0,k = 1;
//为0时添加0,并且不重复,k作为标志位
for(int i = 0; i < len; i++){
j = len - i;
int num = chs1[i] - '0';
if(num == 0 && k == 1){
if(j < 5){
boolean flag = true;
for(int r = i; r < len; r++){
if(chs1[r] != '0'){
flag = false;
break;
}
}
//这部分是最后全部为0不会去添加0
if(!flag){
str += "零";
}
}else{
str += "零";
}
k = 0;
continue;
}
k = 1;
//寻找对应的万,亿,单位
if(j % 4 == 0 && len != 4){
str += dan.get(j/4 - 1);
}
//寻找对应的单位
if(j % 4 == 0){
str = str + map.get(num) + "仟";
}else if(j % 4 == 3){
str = str + map.get(num) + "佰";
}else if(j % 4 == 2){
if(num == 1){
str = str + "拾";
}else{
str = str + map.get(num) + "拾";
}
}else{
str = str + map.get(num);
}
}
if(!(chs1[0] == '0')){
str += "元";
}
//处理小数点后
char[] chs2 = ss[1].toCharArray();
if(chs2[0] == '0' && chs2[1] == '0'){
str += "整";
}else if(chs2[0] == '0'){
str += map.get(chs2[1] - '0') + "分";
}else{
str += map.get(chs2[0] - '0') + "角";
if(chs2[1] != '0'){
str += map.get(chs2[1] - '0') + "分";
}
}
System.out.print(str);
}
}
}