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: I'm really gonna miss this apartment. Y'know, Ben-Ben took his first steps right over there.
Speaker 2: Ohh. Hey, remember when I ran into this thing and it kinda knocked me out a little?
Speaker 1: I loved this place! To tell you the truth, I wish I didn't have to move.
Speaker 2: Uhh, are you saying that you're not entirely happy about this?
Speaker 1: Well, I mean if uh, if Emily gave me a choice...
Speaker 2: You do have a choice!! Ross, why are you listening to her?! Are you, are you crazy?!
Speaker 1: Why?
Speaker 2: It's not right what Emily wants you to do! She is totally-Owww!! Stop pinching me! Look, now you guys said I only had to keep my mouth shut as long as Ross was happy, right? Well he just told me that he's not entirely happy.
Speaker 1: What's going on?
Speaker 2: We all hate Emily!
Speaker 3: Nooo!!
Speaker 4: No, Ross, we do not hate Emily. We-we just, we just think that you're having to sacrifice a whole lot to make her happy.
Speaker 2: Yeah!
Speaker 5: Look, we just think that maybe she's being a little unreasonable.
Speaker 2: Yes! Yes! Unreasonable!
Speaker 1: Unreasonable? How about we have this conversation when one of you guys gets married! You have no idea what it takes to make a marriage work! All right, it's about compromise! Do you always like it? No! Do you do it? Yes! Because it's not all laughing, happy, candy in the sky, drinking coffee at Central Perk all the time! It's real life, okay? It's what grown-ups do!
Speaker 3: I think he's right. You guys hang out at the coffeehouse way too much.
Output:
2