Vasya own cornfield define integer n d the cornfield represent rectangle vertex have cartesian coordinate 0 d d 0 n n d n d n an example cornfield n 7 d 2 Vasya know m grasshopper near field maybe inside the ith grasshopper point x_i y_i Vasya like grasshopper eat corn grasshopper want know position inside cornfield include border outsidehelp Vasya for grasshopper determine inside field include border