package m.shin; import java.util.Scanner; public class Con542 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int a = s.nextInt() , b = s.nextInt() , max = a + b * 5; s.close(); if(a < 4){ for(int i = 0;i <= b;i++){ for(int j = 0;j <= a;j++){ if(i + j != 0){ System.out.println(i*5 + j); } } } }else{ for(int i = 1;i <= max;i++){ System.out.println(i); } } } }