// http://www.loirak.com/prog/java.php import java.awt.*; import java.awt.image.*; import java.io.*; class Main { static final int X = 900, Y = 750; static BufferedImage I = new BufferedImage(X, Y, BufferedImage.TYPE_INT_RGB); static int[][] mesh; static int J, K; static int gi() throws IOException{int k = System.in.read(); return k+(((int)System.in.read())<<8);} static class MainCanvas extends Canvas { static Graphics g; static int m = (1<<16)-1; private void dl(int f, int t){g.drawLine((f>>16)&m, f&m, (t>>16)&m, t&m);} public void paint(Graphics gx){g = gx; // g.drawImage(I, 0, 0, Color.red, null); // maybe to erase old? if(1<0) for(int k=63; k<240; k+= 5) g.drawLine(20, 20, 80, k); else {for(int j=0; j