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: Hi Monica!
Speaker 2: Hey Mon!
Speaker 3: Hey Mon!
Speaker 1: Oh my God, has she slept at all?
Speaker 2: Nope.
Speaker 3: No, it's been three nights in a row.
Speaker 2: Yeah, she finally stopped crying yesterday, but then she found one of Richard's cigar butts out on the terrace, so.
Speaker 1: Oh, okay that explains it. I got a call at two in the morning, but all I could hear was, like, this high squeaky sound, so I thought okay its like a mouse or a opossum. But then I realized where would a mouse or a opossum get the money to make the phone call.
Output:
1