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: That was kind of rude!
Speaker 2: Oh, I'm sorry. Please apologise to Sandy and the Snufflebumps for me.
Speaker 1: You know, he was just doing his job...
Speaker 2: Well, you know what... I-I'm sorry I'm the only one who isn't in love with Gary Poppins out there... But I just... I can't... I can't go through with this.
Speaker 1: Oh, come on Ross...
Speaker 2: No! Hey, you know what? I'm sorry. I would never force you... to hire someone you were this uncomfortable with...
Speaker 1: Oh... That's true.
Speaker 2: Thank you!
Speaker 1: Well, you're the one who wants to fire him, so you're gonna have to do it.
Answer:
1