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: Can I talk to you for a second?!
Speaker 2: Hey, Joey.
Speaker 3: Hey.
Speaker 1: Come on!!
Speaker 4: Why can't we talk in here? With, with, witnesses.
Speaker 1: I just got off the phone with my sister.
Speaker 2: Ah, which, which one?
Speaker 1: Mary-Angela.
Speaker 2: Mary-Angela.
Speaker 1: Yeah.
Speaker 5: Y'know which one was she again?
Speaker 1: Why don't you ask Chandler, 'cause he's the one that fooled around with her. She told me you said you could really fall for her. Now is that true? Or are you just gettin' over Janice by groping my sister.
Speaker 4: It's gotta be the first one.
Speaker 1: Really? That's great! You and my sister, sittin' in a tree.
Speaker 4: Yep, I'm in a tree.
Answer:
1