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: Ucch. Uchh. In case you hadn't noticed, I'm not talking to you.
Speaker 2: UCHH!
Speaker 1: You know... this... this is classic Rachel.
Speaker 2: Yeah... yeah right... Remember in high school when I died and didn't give you my baby?
Speaker 1: This might be my one chance to have a baby Rachel. I mean, you know that I have been so busy focusing on my career.
Speaker 2: What? What career?
Speaker 1: Um... I'm a decorator.
Speaker 2: Ok. You decorate dad's office and so now you're a decorator. Okay! I went to the zoo yesterday and now I'm a koala bear.
Speaker 1: Why can't you ever be supportive?
Speaker 2: Sup... You want to talk supportive? You didn't even come and visit me when I was in the hospital having the baby.
Speaker 1: Oh. Yeah. Well... You didn't come see me when I was in the hospital when I was getting my lips done.
Speaker 2: I did the first time! Oh. Oh... And you know what. You want to know why I'm not giving Emily to you.
Speaker 3: Emma.
Speaker 4: Oh whose side are you on? I'm not giving you Emma because there is no way you could handle the responsibility of a child.
Speaker 1: How hard could it be? You do it.
Speaker 5: ooh oooh...
Answer:
1