Input: He built his house out of jelly
He built his house out of bricks

Output: first