Part 1. Definition
You are given a dialog between 2 or more individuals. You need to generate the number of the speaker (e.g. 1 for Speaker 1) who had the most lines in the dialog. If there is a tie, output the answer '0'.
Part 2. Example
Speaker 1: What do you think we should do for our 10th wedding anniversary?
Speaker 2: Hm, how about we take a vacation? Somewhere sandy and warm.
Speaker 1: Well, if we're going to go out of the country, you need to be sure to renew your passport. It expired over a year ago!
Speaker 2: How about we get something expensive instead of travelling. We could get a new car.
Speaker 1: Is this your way of telling me that you want me to buy you a car?
Answer: 1
Explanation: In this dialog, there are 5 lines of speech. Three of them belong to Speaker 1 and two of them belong to Speaker 2. Therefore, Speaker 1 has the most lines in the dialog.
Part 3. Exercise
Speaker 1: Hey, everybody. Happy Thanksgiving!
Speaker 2: Hey happy Thanksgiving... Pheebs!
Speaker 1: Hey, what's going on Joe?
Speaker 2: I... I... I need a good lie.
Speaker 1: Oh okay. How about the whole "man walking on the moon" thing. You know? You. you could. You could see the strings people!
Speaker 2: No, no, no I need a good lie to explain why I wasn't at a work thing today.
Speaker 1: Ooh, honey. You stink at lying.
Speaker 2: I do not.
Speaker 1: Oh really. Okay. let me ask you something. Yesterday at the coffee house, I went to the bathroom and when I came back, my muffin was gone-who took it?
Speaker 2: Somebody opened the door to the coffee house and a raccoon came running in, went straight for your muffin and I said "Hey don't eat that-that's Phoebe's" and he said... He said... "Joey you stink at lying." What am I going to do?
Speaker 1: Don't worry, don't worry. We'll come up with a good lie. I'll help you practice it.
Speaker 2: Oh great, that'd be great. Thank you.
Speaker 1: Sure, what... what was the work thing?
Speaker 2: Uh...
Speaker 1: "Pick up grandma at the airport"?
Speaker 2: Oh... man...
Answer:
1