Input: Her grandfather is her grandson
Her grandfather is her mother's father

Output: first