1. 


/**
* Angewandte Mathematik, SS09, IFB 2C
* ACM Problem #10101 (Bangla Numbers)
* Link:
http://icpcres.ecs.baylor.edu/onlinejudge/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1042
*
* @author Mohr
* @author Schirm
* @author Mathauser
* @version 1.0, 03/25/2009
*
* Status : Accepted
* Runtime: 0.940
*/

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.io.*;

public class Main {

public static void main(String...args) throws IOException {

BufferedReader reader = new BufferedReader(new
InputStreamReader(System.in));

int row = 0;
int off = 0;

while(true) {

String str = reader.readLine();

if(str == null)
break;

StringTokenizer tokenizer = new StringTokenizer(str);

while (tokenizer.hasMoreTokens()) {

String buffer = "";
long zahl = Long.parseLong(tokenizer.nextToken());
String line = ""+zahl;

if(line.length() > 0) {

off = (line.length() > 1) ? 2 : 1;
zahl = Integer.parseInt(line.substring(line.length()-off));

if (line.length() < 3 && zahl == 0 || zahl != 0) {
buffer = zahl + buffer;
}

line = line.substring(0, line.length()-off);

}

while(line.length() > 0){

if(line.length() > 0) {

zahl = Integer.parseInt(line.substring(line.length()-1));

if (zahl != 0) {
buffer = zahl +" shata " + buffer;
}

line = line.substring(0, line.length()-1);

}

if(line.length() > 0) {

off = (line.length() > 1) ? 2 : 1;
zahl = Integer.parseInt(line.substring(line.length()-off));

if (zahl != 0) {
buffer = zahl +" hajar " + buffer;
}

line = line.substring(0, line.length()-off);

}

if(line.length() > 0) {

off = (line.length() > 1) ? 2 : 1;
zahl = Integer.parseInt(line.substring(line.length()-off));

if (zahl != 0) {
buffer = zahl +" lakh " + buffer;
}

line = line.substring(0, line.length()-off);


}

if(line.length() > 0) {

off = (line.length() > 1) ? 2 : 1;
zahl = Integer.parseInt(line.substring(line.length()-off));

if (zahl != 0) {
buffer = zahl +" kuti " + buffer;
}
else {
buffer = "kuti " + buffer;
}

line = line.substring(0, line.length()-off);

}

}

row+=1;
buffer=buffer.trim();

System.out.printf("%4d", row);
System.out.println(". "+buffer);

}

}

reader.close();

}

}