import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.NoSuchElementException; class Main { public static void main(String[] args) throws Exception { new Main().run(); } void run() { Scanner sc=new Scanner(); int c1=sc.nextInt(); int c5=sc.nextInt(); boolean[] ok=new boolean[1000]; for(int i=0;i<=c1;++i) { for(int j=0;j<=c5;++j) { ok[i+j*5]=true; } } for(int i=1;i Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next());} }