class HaikuReview {

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

        String[] lines = asLines(input);
        if (countSyllables(lines[0]) != FIRST_LINE_SYLLABLE_COUNT) {
            return false;
        }
        if (countSyllables(lines[1]) != SECOND_LINE_SYLLABLE_COUNT) {
            return false;
        }
        if (countSyllables(lines[2]) != THIRD_LINE_SYLLABLE_COUNT) {
            return false;
        }
        return true;
    }

}