#!/bin/python import sys debug = False def inside(c1,c2): return c2[0]<=c1[0]<=c1[2]<=c2[2] and \ c2[1]<=c1[1]<=c1[3]<=c2[3] def cross(c1,c2): return c1[2]>=c2[0] and c2[2]>=c1[0] and \ c1[3]>=c2[1] and c2[3]>=c1[1] def size1(c): return c[0]+1==c[2] and c[1]+1==c[3] def max2(x): p=1 c=0 while p