import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.FileWriter;
import java.io.BufferedReader;
import java.io.FileReader;
public class NumberLines{
public static void main(String [] args) throws IOException{
BufferedReader in=new BufferedReader(new FileReader(args[0]));
int counter=1;
String inLine=in.readLine();
while (inLine!=null){
System.out.print(counter);
counter++;
System.out.println(" "+inLine);
inLine=in.readLine();
}
}
}
//