Java End-of-file
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
private static Scanner scanner;
public static void main(String[] args) {
scanner = new Scanner(System.in);
for (int i = 1; scanner.hasNext(); i++) {
String line = scanner.nextLine();
System.out.println(i + " " + line);
}
}
}
No comments: