import java.util.ArrayList; import java.util.Scanner; public class N542 { public static void main(String[] args) { Scanner sc=new Scanner(System.in); int A=sc.nextInt(); int B=sc.nextInt(); int total=A+B*5; int a=0; int b=0; if(A>4) { A=4; } int buf=0; ArrayList ans=new ArrayList(); while(total>buf) { a++; if(a>A) { a=0; b++; } buf=a+b*5; ans.add(buf); } for(int i=0;i