<P> Michael Scott (Steve Carell) is the only person who looks forward to "The Dundies", his annual awards show at the local Chili's restaurant . Jim Halpert (John Krasinski) tries to dissuade Michael from once again awarding Pam Beesly (Jenna Fischer) the "World's Longest Engagement" award . Meanwhile, Dwight Schrute (Rainn Wilson) learns that there is graffiti about Michael on the ladies' room wall, and his attempts to investigate are embarrassingly unsuccessful . </P> <P> At the awards show, Michael's performance as MC falls flat . Ryan Howard (B.J. Novak) is embarrassed when Michael awards him "Hottest in the Office". Pam's fiancé Roy Anderson (David Denman) and Darryl Philbin (Craig Robinson) leave, taking Pam with them . In the parking lot, Roy and Pam argue, and Pam returns alone to the restaurant, where she begins drinking beer and margaritas . Heckled by other customers, Michael decides to end the show, but an intoxicated Pam leads the office in encouraging him to continue . Relieved upon winning the Dundie for "Whitest Sneakers", Pam gives a drunken acceptance speech and kisses Jim on the lips . This leaves Jim surprised, but happy . </P> <P> As Jim recaps the Dundies for the camera, Pam stares at Jim with dazed fascination and then falls off her stool, and Dwight springs to her rescue, thinking Pam is having a seizure . He then tries to take off his dress shirt and tie, but a Chili's employee stops him . After the party is over, Pam runs to the camera and screams "I would just like to say that this was the best Dundies ever! Whoo!". In the parking lot, Pam admits to Jim that it was she who wrote the graffiti . She begins to ask Jim a question, but stops when she notices the camera . A Chili's employee then talks to the camera and says that Pam apparently was sneaking drinks off of others' tables, which is against the restaurant's rules . He then tells the audience that he Xeroxed her driver's license and she is never welcome at Chili's again . Jim helps Pam into Angela Martin's (Angela Kinsey) car and smiles as they leave . </P> <P> "The Dundies" was the second episode of the series directed by Greg Daniels . Daniels had previously directed the first season episode "Basketball". "The Dundies" was written by Mindy Kaling, who also acts for the show as customer service representative Kelly Kapoor . According to Daniels, while he worked on the Fox animated series King of the Hill, the show would have an annual Dundies - type event called the "Swampy Awards". He previously considered using the plot from this episode for the pilot, but decided it was a "very risky thing to do" and decided to make the pilot a direct adaption of the first episode of the British version . Following the mixed reaction towards the first season, the writers attempted to make the series more "optimistic" and make Michael more likable . They also began fleshing out the supporting characters of the series more by giving them actual personalities . Finally, to further differentiate the series from its British inspiration, the producers made the lights in the office brighter . </P>

When does pam get banned from chili's
find me the text answering this question