import java.util.*; public class flipping { static Scanner in; static double height; static double width; static double permHeight; static double permWidth; static double heightDivide; static double widthDivide; static flipping myFlip; public static void main(String[] args){ myFlip=new flipping(); in=new Scanner(System.in); int cases=1; try{ while(true){ String[] temp; temp=in.nextLine().split(" "); width=Double.parseDouble(temp[0]); height=Double.parseDouble(temp[1]); widthDivide=Double.parseDouble(temp[2]); heightDivide=Double.parseDouble(temp[3]); permHeight=height; permWidth=width; int numPoints=Integer.parseInt(in.nextLine()); System.out.println("Case " + cases+":"); for (int k=0; k=hd)return color; if (curPoint.getX()>=wd && curPoint.getY()<=hd) return color; if (curPoint.getX()