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'.
One 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?
Solution is here: 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.

Now, solve this: Speaker 1: Hey, so? Are you gonna do it? 
Speaker 2: No. No. We're not gonna do that, y'know why? Because its not an even trade. 
Speaker 3: All right, okay, look, what if you could keep the apartment and get the tickets? 
Speaker 4: Done! 
Speaker 3: Let me finish. 
Speaker 4: Oh. 
Speaker 3: I'm talking about a bet, winner takes all. 
Speaker 4: Ooh, we could end up with nothing. 
Speaker 1: Or you could end up with everything. 
Speaker 4: Ooh, I like that. 
Speaker 5: All right, so what do you say? 
Speaker 2: No! 
Speaker 5: Oh, just do it!! 
Speaker 2: Op, op, I'm convinced! 
Speaker 4: Come on man, you know I'd do it for you! Because, you're my best friend. 
Speaker 2: All right, but you can't use that again for a whole year. I'm in. 
Speaker 4: All right!
Solution:
4