class HaikuReview {

    public boolean isHaiku(String input) {
        if (!hasThreeLines(input)) {
            return false;
        }

        String[] lines = splitHaiku(input);

        return numberOfSyllables(lines[0]) == 5
                && numberOfSyllables(lines[1]) == 7
                && numberOfSyllables(lines[2]) == 5;

    }

}