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: Judy, going to the bathroom, good for you.
Speaker 2: Thank you Richard, I appreciate the support.
Speaker 3: Honey. Honey, have you seen my Harmon Kilerbrew bat? Bob doesn't believe I have one.
Speaker 2: I have no idea. Did you know Richard has a twinkie in the city?
Speaker 3: I know. He's like a new man. It's like a scene from Cocoon.
Speaker 2: I just never would have pictured Richard with a bimbo.
Speaker 3: Apparently, he told Johnny Shapiro that she's quite a girl. In fact, he told Johnny that he thinks he's falling in love with her.
Speaker 2: Really.
Speaker 3: I tell you, I've never seen him this happy.
Speaker 2: So Jack, you ever think about trading me in for a younger model?
Speaker 3: Of course not. With you it's like I've got two 25-year-olds.
Speaker 2: Oh Jack stop.
Speaker 3: C'mon, it's my birthday.

SOLUTION: 2

PROBLEM: Speaker 1: Nana is on the phone.
Speaker 2: Oh! That's interesting, since she died seven years ago!!
Speaker 1: She did? Who got her condo in Boca?
Speaker 2: Hello? Oh, it's our nanny! Hi! Oh... God! I hope you feel better! Ok, bye! That's Molly, she's sick. Can you watch Emma today?
Speaker 3: No, I can't. I have back-to-back classes. Did Molly say what she had? Because my throat's been hurting?
Speaker 2: Menstrual cramps.
Speaker 3: I don't think that's what this is.

SOLUTION: 2

PROBLEM: Speaker 1: Rach, you there?
Speaker 2: Oh my God, it's Ross. What are we gonna do?
Speaker 3: Oh, ju-ju-just stay calm. Just be calm. For all he knows we're just hanging out together. Right? Just be nonchalant. That's not nonchalant!
Speaker 2: No idea what it means.
Speaker 3: Oh... okay, just hide!
Speaker 1: Rach?
Speaker 3: Coming! Try under the bed, try under the bed!
Speaker 3: There's no room under the bed.
Speaker 1: Is everything okay?
Speaker 3: Yeah...
Speaker 1: Hey.
Speaker 3: Hi...
Speaker 1: You know where Joey is?
Speaker 3: ...I really don't...
Speaker 1: Can I talk to you for a minute?
Speaker 3: Yeah, sure...
Speaker 2: I don't believe this... Have you guys been...
Speaker 4: Shhh... This is the listening side of the wall.

SOLUTION:
3