import java.util.*; public class Work{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); long w,d,temp; w = sc.nextInt(); d = sc.nextInt(); for(int i = 0;i