/**
* Created by Virus on 6/28/2014.
*/
public class Simple {
public static void main(String[] args) {
String text = "346836873469720";
String[] a = {"", "bir", "ikki", "uch", "to`rt", "besh", "olti", "yetti", "sakkiz", "to`qqiz"};
String[] b = {"", "o`n", "yigirma", "o`ttiz", "qirq", "ellik", "oltmish", "yetmish", "sakson", "to`qson"};
String[] c = {"", "ming", "million", "milliard", "trillion"};
StringBuffer buffer = new StringBuffer();
for (int i = 0; i < text.length(); i++) {
if ((text.length() - i) % 3 == 0) {
buffer.append(a[Integer.valueOf(text.substring(i, i + 1))]);
buffer.append(" yuz ");
} else if ((text.length() - i) % 3 == 1) {
buffer.append(a[Integer.valueOf(text.substring(i, i + 1))]);
buffer.append(" ");
int h = text.length() / 3 - i / 3 - 1;
buffer.append(c[h < 0 ? 0 : h]);
buffer.append(" ");
} else if ((text.length() - i) % 3 == 2) {
buffer.append(b[Integer.valueOf(text.substring(i, i + 1))]);
buffer.append(" ");
}
}
System.out.print(buffer);
}
}