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: Hello?
Speaker 2: Hey, it's me.
Speaker 1: It's Chandler! Are you OK?
Speaker 2: Yeah, I'm fine. I'm trppd in an ATM vstbl wth Jll Gdcr.
Speaker 1: What?
Speaker 2: I'm trppd... in an ATM vstbl... wth Jll Gdcr!
Speaker 1: I have no idea what you just said.
Speaker 2: Put Joey on the phone.
Speaker 3: What's up man?
Speaker 2: I'm trppd... in an ATM vstbl... wth JLL GDCR.
Speaker 3: Oh my God! He's trapped in an ATM vestibule with Jill Goodacre! Chandler, listen.
Speaker 2: Yeah, like that thought never entered my mind.

SOLUTION: 2

PROBLEM: Speaker 1: Hi you guys!
Speaker 2,
Speaker 3: Hey!
Speaker 2: Oo...what's in the bag?
Speaker 1: Oh er...well you know Emma started crawling? I realized that this place, is very unsafe for a baby. So I went to the store and got some stuff to baby-proof the apartment.
Speaker 2: Oh...baby-proofing...Why is this such a big deal now? Y'know...when I was a kid it was like... "Whoops! Joey fell down the stairs!" or er... "Whoops! Joey electrocuted himself again!" Huh!
Speaker 3: Anyway erm...Are you going to get a handyman to install this stuff?
Speaker 1: No. I was just going to do this myself.
Speaker 2: You're gonna do it?
Speaker 1: Yeah...Why? You don't think a woman can do this?
Speaker 2: Oh...Women can. You...can't.
Speaker 1: Monica...would you please tell Joey that he is a pig?
Speaker 3: You're a pig. And you can't do this.
Speaker 1: Wha!? What!? Come on! I found the hardware store all by myself!
Speaker 2: The hardware store is right down the street.
Speaker 1: There is a hardware store right down the street?

SOLUTION: 1

PROBLEM: Speaker 1: We talked 'til like two. It was this perfect evening... more or less.
Speaker 2: ...All of a sudden we realised we were in Yammon.
Speaker 1: Oh, I'm sorry, so 'we' is?
Speaker 2: 'We' would be me and Rick.
Speaker 3: Who's Rick?
Speaker 1: Who's Rick?
Speaker 2: My husband.
Speaker 4: Ooooohhh.
Speaker 1: Oh, so you're divorced?
Speaker 2: No.
Speaker 1: Oh, I'm sorry, then you're widowed?...Hopefully?
Speaker 2: No, I'm still married.
Speaker 1: So tell me, how do- how do you think your husband would feel about you sitting here with me?...Sliding your foot so far up my pant leg you can count the change in my pocket?
Speaker 2: Don't worry. I imagine he'd be okay with you because really, he's okay with Ethan.
Speaker 1: Ethan? There's, there's an Ethan?
Speaker 2: Mmmm... Ethan is my... boyfriend.
Speaker 4: What?!

SOLUTION:
1