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: After you, miss Banana Hammock.
Speaker 2: Thank you, mister Bag.
Speaker 3: Oh hey, how are you?
Speaker 2: Oh hi Rita! Good! Oh, Rita's a massage client.
Speaker 1: Oh! Why don't you introduce me?
Speaker 2: Er, Rita, this is my husband.
Speaker 4: Oh!
Speaker 2: Yeah.
Speaker 1: Why don't you tell her my name?
Speaker 2: Okay, I will. This is my husband Crap Bag.
Speaker 4: Crap Bag?
Speaker 1: If you need an easy way to remember it, just think of a bag of crap.
Speaker 4: Okay. Excuse me...
Speaker 2: Yeah... Ogh... Okay, fine. You made your point. Can you please just be Mike Hannigan again?
Speaker 1: Only if you'll be Phoebe Buffay.
Speaker 2: How about uhm... How about Buffay-Hannigan?
Speaker 1: Really?
Speaker 2: Yeah. I'm Phoebe Buffay-Hannigan Banana Hammock.
Speaker 1: Do you even know what a banana hammock is?
Speaker 2: It's a funny word.
Speaker 1: It's a Speedo.
Speaker 2: ...Oh crap!
Answer:
2