There are 2N+1 points on a plane. The i-th point is at (X_i,Y_i). Two points i and j can be paired if X_i=X_j or Y_i=Y_j.
For each point, determine the following:
N
X_1 Y_1
X_2 Y_2
⋮
X_2N+1 Y_2N+1
Output 2N+1 lines. For the i-th line, print "OK" if all points except for the i-th can be separated into N disjoint pairs. Otherwise print "NG".