Part 1. 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'.
Part 2. 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?
Answer: 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.
Part 3. Exercise
Speaker 1: Hey!
Speaker 2: I packed while you were gone. I left some knickers under your pillow.
Speaker 1: Move in with me.
Speaker 2: What?!
Speaker 1: Don't be scared, I-I know it sounds crazy and-and people will say it's too soon, but just-just think, think how great it will be.
Speaker 2: Ohh, no. Ugh. Oh, leaving London, my whole family lives there.
Speaker 1: I know.
Speaker 2: My job!
Speaker 1: Well, so, you-you'll get a job here! I mean, I'm always hearing about uh, them foreigners coming in here and stealing American jobs; that could be you!
Speaker 2: Yeah, but it-it-it's my whole life-you come to England.
Speaker 1: No, I can't. I would, I really would, but my son is here; I can't leave him. Isn't-you don't think there's any way?
Speaker 2: Ohh, I don't think so. I mean it would be different if it was way into the future -and-and-and we were getting married or something.
Speaker 1: What?
Speaker 2: Oh no, no, right I shouldn't have said married. Uh, please don't go freaky on me. I didn't mean it. Well, I didn't say it; I take it back!
Speaker 1: No, no, don't. Why don't we?
Speaker 2: Why don't we what?
Speaker 1: Get married.
Speaker 2: You are mad!
Speaker 1: No! No! I'm not! It's-it's-it's perfect! I mean it's better than you just-just moving here, 'cause it's us together forever, and that's-that's what I want.
Speaker 2: We've only known each other for six weeks!
Speaker 1: Yeah, I know, so what? I mean, who's-who's to say? Does that me we-we can't do it? Look, huh, I was with Carol for four years before we got married and I wound up divorced from a pregnant lesbian. I mean, this, this makes sense for us. Come on! I mean, on our first date we ended up spending the whole weekend in Vermont! I mean, last night I got my ear pierced! Me! This feels right. Doesn't it?
Speaker 2: My parents are going to be really mad.
Speaker 1: Is that-are you saying yes? Is that yes?
Speaker 2: Yes.
Speaker 2: Yes!
Speaker 1: Yes! We're getting married?!
Speaker 2: Oh my God!
Speaker 1: Yes!
Speaker 2: We're getting married!
Speaker 1: Come here, come here. Uh, ow! Emily, will you marry me?
Speaker 2: Yes.
Speaker 2: Ohh, it's a bit small.
Speaker 1: Damn! I thought that was going to be romantic as hell!
Speaker 2: It was.
Answer:
2