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: I'm so sorry. Please, stop freaking out.
Speaker 2: I'm not freaking out. Why would I be freaking out? A woman named Heldi called and said we were getting married, but that happens everyday.
Speaker 1: Honey, we were at this beautiful place, and I-I-I just put our names down for fun! I mean, what's the harm in that?
Speaker 2: Right here!
Speaker 1: Chandler, please don't think I was trying to pressure you. Phoebe and Rachel...
Speaker 2: Phoebe and Rachel! So the people that knew about our wedding before me were you, Phoebe and Rachel, Heldi, and apparently some band called Starlight Magic 7 who are available by the way!
Speaker 1: It was a mistake. Please don't take this to mean anything, because it doesn't.
Speaker 2: Okay.
Speaker 1: Really?
Speaker 2: Yes, if it really doesn't mean anything, because you know that I'm just not ready...
Speaker 1: I know! I know.
Speaker 2: Okay.
Speaker 1: I'm gonna go tell Joey that that you're back. I was really worried about you.
Speaker 3: Hey, did she buy it?
Speaker 2: Totally.
Speaker 3: So did Heldi show you the place?
Speaker 2: Yeah, it's beautiful.
Speaker 3: I can't believe you're gonna ask Monica to marry you!
Speaker 2: I know.

SOLUTION: 2

PROBLEM: Speaker 1: Bing! Read your Computech proposal, a real homerun. Ooh. Barely got ya that time, get over here. Come on. Wham! Good one. That was a good one. Keep at it team.
Speaker 2: What is with him?
Speaker 3: With him? You're is favourite, you're his guy!
Speaker 4: We never get smacked.
Speaker 2: Well, that's not true, he-he smacked you once.
Speaker 3: Not on purpose, he ricocheted of you and got me.
Speaker 4: I'm telling you, I need some smacks. I got a kid starting Dartmouth in the fall.
Speaker 1: Dartmouth? Who went to Dartmouth? Dartmouth sucks. Did you go to Dartmouth Bing?
Speaker 2: No sir.
Speaker 1: There you go.

SOLUTION: 1

PROBLEM: Speaker 1: Umm, Joanna? I wanna talk about that interview.
Speaker 2: I thought it went very well.
Speaker 1: No! It didn't! That's what I want to talk to you about. Now, just to brief you... I may cry, but they are not tears of sadness or of anger, but just of me having this discussion with you.
Speaker 2: Rachel, please, don't make a scene.
Speaker 1: There's nobody here!
Speaker 2: Sophie, get in here! You see! Now you're making Sophie uncomfortable!
Speaker 3: She's not making me uncomfortable.
Speaker 2: Congratulations! You now just crossed the line into completely useless. Get out.
Speaker 1: Do you want me to quit?
Speaker 2: What?! What would make you think that?
Speaker 1: Well of those things that you said in the interview, I mean if you believe any of them, I must not be a very good assistant. Y'know what? I am just gonna pack up my desk, and I will be gone by the end of the day! Well, I guess there's no use to me sticking around 'til the end of the day!
Speaker 2: Wait-wait-wait-wait! You can put your sad little muffin back in it's drawer. If you must know the truth, I didn't want to lose a perfectly good assistant.
Speaker 1: What?
Speaker 2: That's why I said all those things about your flirting and your drinking...
Speaker 1: My drinking?
Speaker 2: Oh, I must've said that after you left.
Speaker 1: Said what? Exactly.
Speaker 2: That you enjoyed the occasional drink...ing binge.
Speaker 1: Oh my God!! Ohh, that is it! I'm leaving! You are just a horrible person!
Speaker 2: Wait-wait-wait-wait-wait-wait-wait-wait!! If you're gonna get all sensitive about it! I don't want to lose you. What if I, create a position for you? I'll make you an assistant buyer in this department.
Speaker 1: Say more things like that.
Speaker 2: You can have your own office, and a raise! Effective tomorrow.
Speaker 1: I'd need an expense account.
Speaker 2: Done!
Speaker 1: And an assistant.
Speaker 2: Sophie, get in here!

SOLUTION:
2