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: So, um, how-how did you guys meet?
Speaker 2: Well um, I was in ah Mrs. Knight's ah, I mean Alice, sorry, Alice, I always do that. I was in her ah, Home Ec class.
Speaker 3: And he was my best student.
Speaker 2: Yeah, she was my best teacher.
Speaker 3: Ohhh.
Speaker 4: If that doesn't keep kids in school, what will?
Speaker 5: And so now you guys are gonna be married?
Speaker 3: Yeah. Y'know we-we talked about just living together, but um, we want to have kids right away.

SOLUTION: 3

PROBLEM: Speaker 1: That's her! Okay, come on!
Speaker 2: Hi!
Speaker 3: Hi.
Speaker 2: So which one of you lucky boys is Chandler?
Speaker 1: Uh, that-that's-that's me!
Speaker 3: That's me.
Speaker 1: Joey Tribbiani, a big fan.
Speaker 2: So is that a bedroom?
Speaker 3: Yeah, yeah right over there.
Speaker 2: All right, whenever you're ready.
Speaker 3: That was weird.
Speaker 1: Why-why would she go in the bedroom?
Speaker 2: I'm waiting.
Speaker 3: So she's a...
Speaker 1: Yeah, that's one naked hooker!

SOLUTION: 1

PROBLEM: Speaker 1: Hi, this Phoebe from Empire Office Supplies, can I speak to your supply manager please? Earl, thanks. Hi Earl, this is Phoebe from Empire Office Supplies I'd like to talk to you about your toner needs.
Speaker 2: I don't need any toner.
Speaker 1: I'm hearing what you're saying, but at our prices everyone needs toner.
Speaker 2: Not me.
Speaker 1: May I ask why?
Speaker 2: You wanna know why. You wanna know why?
Speaker 1: I surely do!
Speaker 2: Okay, I don't need any toner because I'm going to kill myself.
Speaker 1: Umm, is-is that because you're out of toner?

SOLUTION:
1