TASK 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'.
PROBLEM: Speaker 1: Hey! What do you guys think about this. Ross. The Divorce-Force.
Speaker 2: Better.
Speaker 3: Very cool.
Speaker 1: Hey Phoebs...You know I'm I'm really glad you came to talk to me the other day and I hope I was a little helpful.
Speaker 2: Oh yeah you were helpful! Yeah...No, thanks you.
Speaker 1: Good, good. Yeah coz the more I thought about it, the more I realized I don't think marriage is necessarily the right path for you.
Speaker 2: What do you mean?
Speaker 1: Well, I know the other day in the coffeehouse you were caught up in the whole soccer mom thing? but...is that really you? I mean can you honestly picture yourself in a Volvo?
Speaker 2: They are awfully boxy.
Speaker 1: I don't know...you'd be so bored with marriage. I mean it's so...normal.
Speaker 2: Uh huh.

SOLUTION: 1

PROBLEM: Speaker 1: Phoebe! Come on! Let's go! Come on! Why aren't you dressed yet?!
Speaker 2: I'm sorry, but I just wrote the best dance song for your wedding. Check this out.
Speaker 1: No, Phoebe, I'll tell you what, if you get ready now I'll let you play it at the wedding.
Speaker 2: Really?! Oh that's so exciting! Thank you! Thanks Mon! Oh but Mon, if you touch my guitar again I'll have to pound on you for a little bit.
Speaker 1: Fair enough, now go get ready!
Speaker 2: Okay.

SOLUTION: 1

PROBLEM: Speaker 1: Are they right?
Speaker 2: Probably, yeah... I mean, maybe we should... hold off until we talk to Ross.
Speaker 1: Yeah... Yeah, we can wait, we don't have to do anything tonight.
Speaker 2: Yeah, I think that'd be best... So, so I'm gonna... I'm gonna take off...
Speaker 1: Although...
Speaker 2: I like although!
Speaker 1: I mean, you know... Ross and I haven't dated in like... six years...
Speaker 2: Six years? Wow... It's almost as long as highschool...
Speaker 1: Plus, you know, he is with Charlie now.
Speaker 2: Absolutely! He's not thinking about you.
Speaker 1: No...
Speaker 2: I'm thinking about you...
Speaker 1: Yeah...
Speaker 2: Let's forget about Ross...
Speaker 1: Forgotten.

SOLUTION:
1