import java.io.*; import java.util.*; class probc{ static int seen(int x, int y, char[][] grid){ int ans=0; for (int a=0;a0;x--){ if (a%x==0 && b%x==0){ return x; } } return 1; } static int abs(int x){ if (x<0) return -x; else return x; } public static void main(String[] args)throws IOException{ BufferedReader in= new BufferedReader(new InputStreamReader(System.in)); StringTokenizer token; int n=Integer.parseInt(in.readLine()); int h,w,index; String sub,line; char[][][] grid; grid =new char[n][][]; for(int x=0;xhi){hi=ans;} } } } System.out.println("Data set "+(x+1)+": He can see " + hi +" trees in the following places"); for(int a=0;a