import java.util.*; import java.io.*; class close { public static void main(String[] args) throws IOException { int p, q; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter values"); String s1 = br.readLine(); p = Integer.parseInt(s1); String s2 = br.readLine(); q = Integer.parseInt(s2); close c1 = new close(); c1.find(p, q); } void find(int p, int q) { int s[] = new int[18]; int lol, j, count = 0, f = 0, a; boolean b; for (lol = p; lol <= q; lol++) { j = 0; System.out.print(j); while (lol > 0) { s[j] = lol % 10; j++; lol = lol / 10; System.out.println(lol); } } } }