// Author: Rodney Shaghoulian // Github: github.com/RodneyShag // HackerRank: hackerrank.com/RodneyShag import java.util.Scanner; public class Solution { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int i = 1; while (scan.hasNextLine()) { System.out.println(i + " " + scan.nextLine()); i++; } scan.close(); } }