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 != B && j == 5) { break; }else { if(i + j != 0) { System.out.println(j + i * 5); } } } } } }