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 Chandler!
Speaker 2: Hey Caitlin! Somebody got a haircut.
Speaker 3: Ugh, I hate it! I look like an 8-year-old boy.
Speaker 2: Yeah, if that was true, gym class would've been a lot more interesting.
Speaker 3: It's uh, 27 dollars even.
Speaker 2: Oh, okay. Here you go.
Speaker 3: Hey, where's the chicken?
Speaker 2: Oh, he's in the back. The duck pissed him off, said that eggs came first.
Speaker 3: Great. I'll see you later!
Speaker 2: Okay, bye!
Output:
2