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'.
Input: Speaker 1: Well you're only two centimeters dilated and we need to get to ten. It'll be a while.
Speaker 2: Oh, okay.
Speaker 1: I'll be back in an hour to check you again.
Speaker 3: Thank you.
Speaker 2: Thank you. Well, I guess we have some time to kill.
Speaker 3: Yeah, guess so. Whew! Check these out! Never done this before.
Speaker 2: Yeah well it looks great!
Output:
2