import java.util.Scanner; public class No542 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); //1円玉の枚数 int B = sc.nextInt(); //5円玉の枚数 for(int i = 0;i <= B;i++) { for(int j = 0;j <= A;j++) { if(i + j != 0) { System.out.println(1 * j + 5 * i); } } } } }