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: Hi there!
Speaker 2: Hello, welcome to Lavender Day Spa SPA. How may I help you?
Speaker 1: Oh, hi. I have a massage appointment under Rachel Green, and here is my gift certificate.
Speaker 2: This has been torn up.
Speaker 1: And... taped back together.
Speaker 2: Ok well, I'll call you as soon as your massage therapist is ready.
Speaker 1: Ok
Speaker 2: Have a seat through the glass doors.
Speaker 1: through the glass doors.
Speaker 2: Through the glass doors.
Speaker 1: Alright-y then.
Speaker 2: Phoebe, your next client's in the waiting room.
Speaker 3: Ok. Do we have to talk like that then they're not around? Oh, no, no! Listen, is there someone who can fill in for me?
Speaker 2: Sorry, everyone is booked!
Speaker 3: But that woman can't know I work here. She's a friend of mine and I made this big stink about how awful this massage chains are.
Speaker 2: Then why you work here?
Speaker 3: 'Cause it's good money! But that doesn't change the fact that this is an evil blood sucking corporate machine!
Speaker 2: Well, I think this is a great place to work!
Speaker 3: Ok, are they listening?

SOLUTION: 2

PROBLEM: Speaker 1: Oh, hey, Lauren. Uh, you guys this is, this is Kate's understudy, Lauren.
Speaker 2: Oh, hi!
Speaker 3: Hey.
Speaker 2: Hey. Gosh, you look soo familiar.
Speaker 3: Oh, yeah! I-I ran into you in the hallway in your building. It was right after I slept with Joey. He dumped me the next day.
Speaker 4: Here we go people! Boxing Day! The Lucille Lortel Theatre, blah-la-la-la... Ah-ha! Joey Tribianni, gives an uneven performance, but Mr. Tribianni is not the worst thing in this production.
Speaker 1: Yes!!! Ha-ha-ha!
Speaker 4: Kate Miller's awkward and mannered portrayal is laughable. Badda-badda-badda. Ah-ha! Here it is! The direction by Marshal Talmant is... Thank you, boys and girls, you've ruined my life. Please, stuff your talentless faces with my Mother's crab cakes! Excuse me!!
Speaker 1: Anyone mind if I save this?

SOLUTION: 1

PROBLEM: Speaker 1: Oh good, you haven't left yet.
Speaker 2: Where have you been?
Speaker 1: I got held up at Dr. Gettleman's office. There was some guy that freaked everybody out.
Speaker 3: Well, you got here just in time. I really have to go buddy.
Speaker 1: Oh man.
Speaker 2: Promise to call me when you land.
Speaker 3: Of course I will call you. I love you.
Speaker 2: I love you too.
Speaker 4: Okay, wow, wow, wow. Watch the tongue people, we've got a baby over here.
Speaker 5: Bye Chandler.
Speaker 3: Awww. Bye!
Speaker 4: Bye honey.
Speaker 3: What's the matter Joe?
Speaker 6: I'm mad at you for leaving! You're nothing but a big leaver. Big leaver with a stupid suitcase.
Speaker 3: Any chance you are trying to pick a fight to make all this easier?
Speaker 6: Dude, you see right through me!!
Speaker 3: Well, bye Mon, bye Ross, Rachel, bye Emma!
Speaker 5: Okay, bye-bye! Good trip!
Speaker 2: Chandler, wait. It goes: Old job, new job, you. This is just something I have to do.
Speaker 3: I know.
Speaker 2: I love you so much.
Speaker 3: I know that too.
Speaker 3: Don't worry, I'll be back before you know it. Yes it will be the same. Because I know, that's how. I promise.
Speaker 6: Double promise? Call me when you land.
Speaker 2: Can I talk now?
Speaker 6: Okay, bye.
Speaker 2: Joey?
Speaker 6: He had to board.

SOLUTION:
3