Teacher: 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'.
Teacher: Now, understand the problem? If you are still confused, see the following 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: 1
Reason: 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 instance: Speaker 1: Hey! Joey said no autographs! But if she's gettting one, then I want one too: To Monica. And none of this "best wishes" crap. I want "love". 
Speaker 2: Ok actually Mon, Matthew was just giving me his phone number. 
Speaker 1: Oh man! If I had known I was coming to this party I never would have gotten married! 
Speaker 3: It was nice to meet you Rachel. 
Speaker 2: Nice to meet you. 
Speaker 3: Call me. 
Speaker 2: Ok 
Speaker 1: We will!! 
Speaker 1: Look at you with all the guys! 
Speaker 2: Yeah! 
Speaker 1: I guess you have forgotten all about Joey? 
Speaker 2: Yeah, well, I guess I have forgotten about Joey and clearly you've forgotten about Chandler! 
Speaker 1: Please... Chandler is the love of my life... ... oooh leather pants! Have Mercy!
Student:
1