import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String line = sc.nextLine();
int start=2,end=2;
int i=2;
String A,B;
int A_num,B_num;
int n=Integer.parseInt(String.valueOf(line.charAt(0)));
while(!Character.isWhitespace(line.charAt(i))){
i++;
end++;
}
A=line.substring(start,end);
A_num=Integer.parseInt(A);
B=line.substring(end+1,line.length());
B_num=Integer.parseInt(B);
if(1<=n&&n<=9&&0<=A_num&&A_num<=B_num&&B_num<=5000&&B.length()<=n){
int dis=B_num-A_num;
for(int j=0;j<=dis;j++){
for(int k=0;k<n-A.length();k++){
System.out.print("0");
}
System.out.println(A_num++);
A=String.valueOf(A_num);
}
}
}
}