Given the task definition and input, reply with output. 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'.

Speaker 1: Hey, you know, before you said that nothing could happen between us? What changed?
Speaker 2: Well, I only said that because of Ross, you know. Then I saw him kissing Charlie...
Speaker 1: What? Ross and Charlie? Wow! She's really making her way through the group, huh? Ah, who am I to talk?
Speaker 3: I can't believe this. Rachel and Joey?
Speaker 4: How about the dinosaur twins in the other room? No-one is manning that wall!
Speaker 3: I'm on it!
Speaker 4: Anything?
Speaker 3: I think I hear curtains closing...
Speaker 5: We've got shoes being kicked off over here.
Speaker 3: Bedsprings, unmistakable!
Speaker 4: You do realise that's your brother?
Speaker 3: Not until you said it. Somebody switch! Wait a minute... Ross and Charlie, Joey and Rachel, Phoebe and Mike! We're the only people leaving with the same person we came with.
Speaker 4: That's not true. I came with Monica and I'm leaving with Weird Al.
Speaker 3: Okay, I've had it with the hair jokes. Tomorrow morning, before we leave, I'm going to the salon.
Speaker 4: Okay Buckwheat!
Speaker 5: You gotta hear this, it's great... It's like free porn!
3