Input: Sentence 1: If you walk in summer, early morning or late afternoon is best. Sentence 2: Walking in the early morning or late afternoon is best in the summer.
Output: 

 yes