import java.awt.*; import java.awt.image.*; import javax.imageio.ImageIO; import java.io.*; class Main { static int[] col = {0x00ffff, 0xff00ff, 0xffff00, 0xFFFFFF}; static final int X = 700, Y = 700; static byte gc(FileInputStream s) throws Throwable {int j = s.read(); if (j<0) throw new Throwable("eof"); return (byte)j;} static int gs(FileInputStream s) throws Throwable {int x = gc(s), y = gc(s); int z = (((0xff&y)|(x<<8))); return Math.max(0, Math.min(z, X-1));} static public void main( String[] args ) throws FileNotFoundException, IOException, Throwable { char[] abc = {'A','B','C','D','E','F','G','H','I','J','K','L','M', 'N','O','P','Q','R','S','T'}; char[] zot = {'0','1','2','3','4','5','6','7'}; FileInputStream is; for(int j=0; j<26; ++j) {int u = 0; BufferedImage I = new BufferedImage(X, Y, BufferedImage.TYPE_INT_RGB); Graphics2D g = I.createGraphics(); int xmi = X, ymi = Y, xma = 0, yma = 0; try{is = new FileInputStream("trail"+abc[j]);} catch(java.io.FileNotFoundException nf){ System.out.println("No file called \""+"trail"+abc[j]+"\""); return;} try {while(true){ byte pn = (byte)is.read(); int x = gs(is), y = Y-gs(is)-1; xmi = Math.min(xmi, x-5); xma = Math.max(xma, x); ymi = Math.min(ymi, y-11); yma = Math.max(yma, y); if(pn==3) {g.fillOval(x+1, y-1, 4, 4); g.drawChars(zot, (u++)/3, 1, x-6, y-1);} else if(x+2