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: Well, I feel like a snack! 
Speaker 2: Do you want some shortbread? Eh that's Scottish like you are. 
Speaker 1: Oh no thanks. I don't like any thing from my Scottish heritage. 
Speaker 3: What?! 
Speaker 1: Well it's just my entire family was run out of Scotland by...Vikings. Anyway, lots of bad memories. 
Speaker 3: Oh well, it sounds to me like your family is ready to uh, rediscover its Scottish roots. 
Speaker 2: No! No-no they're not. They're still very angry! But y'know Chandler is also half-Swedish. You know what the Swedish people are famous for? Sitting down and being quiet. 
Speaker 3: Well yeah-yeah the Scottish history is so much more... 
Speaker 2: You can not play bagpipes at the wedding!! 
Speaker 3: How did you know about that?! 
Speaker 1: We heard you play all the way from your apartment! 
Speaker 3: Were you the ones called the cops?! 
Speaker 1: That's not really important right now. What is important is; while we appreciate the gesture, we just don't feel bagpipes are appropriate for our wedding. 
Speaker 3: Why not? 
Speaker 1: Because we hate them. 
Speaker 3: Come on that's not fair! I mean you haven't even heard me play! 
Speaker 1: We have heard you play. 
Speaker 3: No, you've heard my practice. Okay? Just-just give me a chance to perform for you and then decide whatever you want. And I'm not going to tell you what song I'm gonna play either. But uh, let's just say when it's over I'll bet there will be a we bit o' celebration.

SOLUTION: 3

PROBLEM: Speaker 1: Hey. 
Speaker 2: Hi. Mom. Dad. 
Speaker 3: Sweetheart. Oh sorry were late, my fault, I insisted on riding the tube. 
Speaker 4: Judy, the kids.. 
Speaker 3: Jack, that's what they call the subway. 
Speaker 4: Ohh, I thought that you.... 
Speaker 2, 
Speaker 1: Dad, dad. We got it!! We Got It!!!

SOLUTION: 3

PROBLEM: Speaker 1: What uh-What did you-What?! 
Speaker 2: I still love you. And I know I probably shouldn't even be here telling you this, I mean you're with Chandler a guy I really like, and if you say he's straight I'll believe you! After seeing ya the other night I knew if I didn't tell ya I'd regret it for the rest of my life. Letting you go was the stupidest thing I ever did. 
Speaker 1: Y'know you're really not supposed to be back here! 
Speaker 2: Well yeah, I'm sorry. I know this is the wrong time and the wrong place but I had to tell ya! I wanna spend my life with you. I wanna marry you. I wanna have kids with you. 
Speaker 1: Oh God... Why don't they put chairs back here?! 
Speaker 2: I know this is crazy but am I too late? 
Speaker 1: What the... Yes you're too late! Where was all this three years ago?! 
Speaker 2: Well I know I was an idiot! And I tried to forget you, I really did! Y'know after we had lunch last year I spent six months in Africa trying to get you out of my head! 
Speaker 1: What were you doing in Africa? 
Speaker 2: Working with blind kids. 
Speaker 1: Ohhh! What are you doing to me?! Oh look, I-I... I'm sorry but umm, this-this-this-this is not going to happen. 
Speaker 2: Okay that's fine, I'll walk away. And I'll never bother you again, but only if you tell me Chandler's willing to give you everything I am. 
Speaker 1: Well he is! Yeah, I mean marriage is all he talks about! My goodness, in fact, I'm the one that's making him wait! 
Speaker 2: You are? 
Speaker 1: Yeah! 
Speaker 2: Why? 
Speaker 1: Why? Because of the government.

SOLUTION:
1

