Input: Bob got angry when he passed the exam
Bob got happy when he passed the exam

Output: first