Input: Sentence 1: having sharing the bedroom Sentence 2: Not having to share a room.
Output: 

 yes