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: All this stuff takes up a lot of room. Hey how uh, how serious are you about keeping Ben in your life?
Speaker 2: My son? Pretty serious. Oh hey Katie! What uh, what are you doing here?
Speaker 3: Well, the delivery went out to you and I realized they forgot this.
Speaker 2: Ah, must've been fairly obvious since it was the only thing left in your store.
Speaker 3: Listen, to be honest, home deliveries are really a part of my job description.
Speaker 2: Oh.
Speaker 3: Oh uh...I actually came here to ask you out.
Speaker 2: Oh! Wow! Uh, yeah! That sounds great. I'm just gonna put this back in my pocket, pretend that didn't happen. Uh yeah, actually I'm free now. Do you wanna grab some coffee or...
Speaker 3: Sure!
Speaker 1: Horny bitch. No! You're a horny bitch! Noooo! You're the horny bitch! No! You're a horny bitch!
Answer:
2