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 Joey, how'd the audition go? 
Speaker 2: Incredible! I met the director this time and you'll never believe who it was. 
Speaker 3: Who? 
Speaker 2: All right. I'll give you one hint. Warren Beatty. 
Speaker 3: Wow! 
Speaker 2: Yeah, there's just one thing that might be kind've a problem. See, I, uh, had to kiss this guy. 
Speaker 4: 'Cause he was just so darn cute. 
Speaker 2: No, as part of the audition. See, I'm up for this part of this guy, who the main guy kisses. 
Speaker 5: Well, hey. You're an actor, I say you just suck it up and do it. Or you just do it. 
Speaker 2: I did do it, I'm a professional. 
Speaker 6: Then what's the problem? 
Speaker 2: See after the scene, Mr. Beatty comes up to me and says 'good actor, bad kisser'. Can you believe that, me not a good kisser, that's like, like Mother Theresa, not a good mother. 
Speaker 7: Well, come on, who cares what that guy thinks. What does Warren Beatty know about kissing Ooh.
Answer:
2