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: You know, I'm thinking about letting Emma have her first cookie.
Speaker 2: Her first cookie? She has cookies all the time!
Speaker 1: I've never given her a cookie. Have you?
Speaker 2: No! No... and, for the record, I've also never given her a frosting from a can!
Speaker 3: Hey Rach, the adoption agency needs letters of recommendation and we were wondering if you would write one for us.
Speaker 1: Of course, I'd be honored!
Speaker 4: Thanks!
Speaker 3: Thank you!
Speaker 2: Ah, look who's back! Why do you have bags? RACH, WHY DOES SHE HAVE BAGS?
Speaker 5: Well, I'm staying with you guys!
Speaker 2: What?
Speaker 5: We're gonna be roomies! Come on!
2