Input: Cat has wings
Bird has wings

Output: first