import java.io.*; import java.util.*; public class Fence { static final int DIM = 100; public static void main(String[] argv) throws Exception { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); //new FileInputStream("smallexample.in"))); int N = Integer.parseInt(in.readLine().trim()); for(int dataSet = 1;dataSet <= N; dataSet++){ int x, y, z; { StringTokenizer t = new StringTokenizer(in.readLine()); x = Integer.parseInt(t.nextToken()); y = Integer.parseInt(t.nextToken()); z = Integer.parseInt(t.nextToken()); } // default to false in java // xlines are parallel to x axis boolean[][] xlines, ylines; xlines = new boolean[DIM+1][DIM]; ylines = new boolean[DIM+1][DIM]; for(int moven=0;moven=0 && x < DIM && y>=0 && y< DIM; } static void printLines(boolean[][] xlines, boolean[][] ylines){ System.out.print(' '); for(int x=0;x=0;y--){ for(int x=0;x