private static List<Box> readStdin() throws IOException {
        List<Box> boxes = new ArrayList<>(100);

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        for (String line = br.readLine(); line != null; line = br.readLine()) {
            String[] parts = line.split("\\s");
            if (parts.length == 0 && BREAK_ON_BLANK)
                break;

            if (parts.length != 4)
                throw new IllegalArgumentException();

            boxes.add(readBox(parts));
        }

        return boxes;
    }