public void start() {
        String input;

        while (IN.hasNextLine()) {
            input = IN.nextLine();
            input = input.trim();

            if (input.startsWith("VOTE ") && input.length() > 5) {
                machine.vote(input.substring(5));
            } else if (input.startsWith("ADD PARTY ") && input.length() > 10) {
                machine.addParty(input.substring(10));
            } else if (input.startsWith("VOTES")) {
                showVotes(machine.getVotes());
            } else if (input.startsWith("PARTIES")) {
                showParties(machine.getParties());
            } else if (input.startsWith("EXIT")) {
                break;
            } else if (input.startsWith("HELP")) {
                System.out.println("VOTE [party]");
                System.out.println("ADD PARTY [party]");
                System.out.println("VOTES");
                System.out.println("PARTIES");
                System.out.println("EXIT");
                System.out.println("HELP");
            }
        }
    }