Teacher: 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'.
Teacher: Now, understand the problem? If you are still confused, see the following 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: 1
Reason: 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 instance: Speaker 1: Hey, remember when I had a monkey?
Speaker 2: Yeah.
Speaker 1: Yeah, what, what was I thinking?
Speaker 3: Hey! So, what's with the 20 percent tip? Did I do something wrong?
Speaker 2: Twenty percent is a pretty generous tip Joe.
Speaker 3: Y'know what's more generous than that?! Fifty percent! Y'know what's even more generous than that?!!
Speaker 2: I see where you're goin'!
Speaker 1: What's up with the greed Joe?
Speaker 3: All right, look I'm sorry you guys, but it's just that I gotta get these new head shots made. And they're really expensive, y'know? I'm down to like three! Well, actually two 'cause one of 'em I kinda blackened in some teeth-Why did I do that?!
Speaker 1: Well isn't there something you can do to earn a little extra money? I mean, can't-can't you pick up, I don't know, an extra shift here?
Student:
1