Input: Sentence 1: At an earlier period, this same adventurous philosopher briefly affected the softly stubbled face, and still earlier the quarter-inch-long haircut then uncommon even at the margins, except in military school. Sentence 2: The philosopher used to have a short beard, and before that he had a military style haircut.
Output: 

 yes