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'.
One example: Speaker 1: What do you think we should do for our 10th wedding anniversary?
Speaker 2: Hm, how about we take a vacation? Somewhere sandy and warm.
Speaker 1: Well, if we're going to go out of the country, you need to be sure to renew your passport. It expired over a year ago!
Speaker 2: How about we get something expensive instead of travelling. We could get a new car.
Speaker 1: Is this your way of telling me that you want me to buy you a car?
Solution is here: 1
Explanation: In this dialog, there are 5 lines of speech. Three of them belong to Speaker 1 and two of them belong to Speaker 2. Therefore, Speaker 1 has the most lines in the dialog.

Now, solve this: 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