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: There's nothing to discuss. We're not paying for your wine cellar.
Speaker 2: You-you have to meet me in the middle here.
Speaker 3: Hey, you keep pushing me on this, my foots going to meet the middle of your ass.
Speaker 4: Dad!!
Speaker 5: What-what's going on?!
Speaker 4: Nothing, nothing. Everything's under control.
Speaker 2: You want a piece of me, sir? Is that what your saying? You want a piece of me?
Speaker 4: Okay! Okay! That's it!! Parents!! Parents!! Back away!! All right, this is our wedding day! From now on everyone gets along, and if I hear one more word. NO GRANDCHILDREN! That's right!!
Speaker 3: Okay, okay.
Speaker 2: Sorry old boy, sorry. Sorry. Sorry. I could kill you with my thumb, you know.
Speaker 5: What was all that about?
Speaker 4: It was...This disagreement over...My god. You...you look beautiful.
Speaker 5: Ohh...Oh! You were not meant to see me before the wedding. It's bad luck.
Speaker 4: You know what, I think we've had all the bad luck we're going to have.

SOLUTION: 4

PROBLEM: Speaker 1: You can not do this.
Speaker 2: Do what, do what?
Speaker 1: Roger wants to take her out tomorrow night.
Speaker 2: No! Phoebes! Don't you remember why you dumped the guy?
Speaker 3: 'Cause he was creepy, and mean, and a little frightening... alright, still, it's nice to have a date on Valentine's Day!
Speaker 1: But Phoebe, you can go out with a creepy guy any night of the year. I know I do.
Speaker 2: Well, what are you guys doing tomorrow night?
Speaker 4: Actually, tomorrow night kinda depends on how tonight goes.
Speaker 5: Oh, uh, listen, about tonight...
Speaker 4: No, no, no, don't you dare bail on me. The only reason she's goin' out with me is because I said I could bring a friend for her friend.
Speaker 5: Yes, I know, but her friend sounds like such a...
Speaker 4: Pathetic mess? I know, but-come on, man, she's needy, she's vulnerable. I'm thinkin', cha-ching! Thanks. Look, you have not been out with a woman since Janice. You're doin' this.
Speaker 6: Hi. She said yes.
Speaker 5: Yes! Way to go, man! Still got the egg, huh?

SOLUTION: 1

PROBLEM: Speaker 1: Turns out this sweater is made for a woman.
Speaker 2: So, why are you still wearing it?
Speaker 1: Because it's soft... Hey, so how was your date?
Speaker 2: Ooh... Not so good.
Speaker 1: Well, looks like it's just the two of us tonight, huh old buddy?
Speaker 2: Yeah, and you know what? We could do a lot worse.
Speaker 2: JOEY DOESN'T SHARE FOOD!

SOLUTION:
2