Fact1: Charlie Bucket In watches group small town, Fact2: other candy makers including rival Arthur Slugworth sent in spies to steal recipes, Fact3: fifth ticket was found by millionaire in Paraguay causing Charlie to lose hope, Fact4: Charlie uses it to buy Scrumdiddlyumptious bar, Fact5: Walking home as Charlie hears people reading newspapers
Output: In a small town, Charlie Bucket, a poor paperboy, watches a group of children visit a candy shop. Walking home, he passes Willy Wonkas chocolate factory. A mysterious tinker recites the first lines of William Allinghams poem The Fairies, and tells Charlie, Nobody ever goes in, and nobody ever comes out. Charlie rushes home to his widowed mother and bedridden grandparents. After telling Grandpa Joe about the tinker, Joe reveals that Wonka locked the factory because other candy makers, including rival Arthur Slugworth, sent in spies to steal his recipes. Wonka disappeared, but after three years resumed selling candy; the origin of Wonkas labor force is unknown. The next day, Wonka announces that he hid five Golden Tickets in chocolate Wonka Bars. Finders of the tickets will receive a factory tour and a lifetime supply of chocolate. The first four tickets are found by the gluttonous Augustus Gloop, the spoiled Veruca Salt, the gumchewing Violet Beauregarde, and the televisionobsessed Mike Teevee. As each winner is announced on TV, a man whispers to them. Charlie opens two Wonka Bars but finds no Golden Ticket. The newspapers announce the fifth ticket was found by a millionaire in Paraguay causing Charlie to lose hope. The next day, Charlie finds money in a sewer and uses it to buy a Scrumdiddlyumptious bar. With the change, he buys another Wonka Bar for Joe. Walking home, as Charlie hears people reading the newspapers; revealing that the Paraguayan millionaires ticket is a fake, he opens the Wonka Bar and finds the fifth golden ticket. While rushing home, he encounters the same man seen whispering to the other winners, who introduces himself as Slugworth and offers a reward for a sample of Wonkas latest creation, the Everlasting Gobstopper. Returning home with the Golden Ticket, Charlie chooses Joe as his chaperone. The next day, Wonka greets the ticket winners and leads them inside where each signs a contract before the tour. The factory includes a river of chocolate, edible mushrooms, lickable wallpaper, and other sweets and inventions. As the visitors sample these, they see Wonkas workers, small men known as OompaLoompas. Augustus falls into the chocolate river and is sucked up a pipe to the Fudge Room. In the Inventing Room, everyone receives an Everlasting Gobstopper. Violet becomes a large blueberry after chewing an experimental gum containing a threecourse meal, over Wonkas warnings. The group reaches the Fizzy Lifting Drinks Room, where Charlie and Joe ignore Wonkas warning and sample the drinks. They float and have a nearfatal encounter with an exhaust fan before burping back to the ground. In the Chocolate Eggs Room, Veruca demands a golden goose for herself before falling into a garbage chute leading to the furnace, with her father falling in trying to rescue her. The group tests out Wonkas Wonkavision, only for Mike to teleport himself and become a few inches tall. With Charlie and Joe remaining, Wonka says they are not getting anything because they violated the contract by stealing the Fizzy Lifting Drinks. Infuriated by this, Joe suggests to Charlie that he should give Slugworth the Gobstopper in revenge, but Charlie returns the candy back to Wonka. With this selfless act, Wonka declares Charlie as the winner. He reveals that Slugworth is actually Mr. Wilkinson, an employee of Wonka, and the offer to buy the Gobstopper was a morality test which only Charlie passed. The trio enter the Wonkavator, a multidirectional glass elevator that flies out of the factory. Soaring over the city, Wonka reveals that his actual prize is the factory; Wonka created the contest to find an heir worthy enough, and so Charlie and his family can immediately move in. Wonka then reminds Charlie not to forget about the man who suddenly received everything he ever wanted. Charlie asks, What happened? to which Wonka replies, He lived happily ever after.