import java.io.FileInputStream;

public class DumpText {
    public static void main(String[] args) throws Exception {
        int ch;
        try (FileInputStream fis = new FileInputStream(args[0]);) {
            while((ch = fis.read()) != -1) {
                System.out.printf("%02X ", ch);
                if (ch == 0x0a)
                    System.out.println();
            }
        }
    }
}
