In this task, five ordered key facts are given. All the given facts are expressed in natural language. Your job is to generate a story 100 to 1000 words long, that includes all the facts given as input in their order of appearance while expanding upon them to produce a broader, yet coherent, narrative.

Fact1: NASA looks for original programmer of software to see why software seems to be broken Due to supposed glitch in computer navigation system, Fact2: Fred Z. Randall meets Paul Wick William Wild Bill Overbeck and astronaut Gary Hackman, Fact3: Gary is hit in head, Fact4: Fred along with go through series of exercises Gordon Peacock, Fact5: crew members To save on are put into hypersleep resources
NASA is training for the first manned mission to Mars by the spacecraft Aries. Due to a supposed glitch in the computer navigation system, NASA looks for the original programmer of the software to see why the software seems to be broken. Fred Z. Randall Harland Williams, the eccentric programmer who wrote the software, meets Paul Wick Jeffrey DeMunn, the flight director of the Mars mission; William Wild Bill Overbeck William Sadler, the commander of the Mars mission; and astronaut Gary Hackman Peter Onorati, the computer specialist. After a display of hardheaded stubbornness by Gary, he is hit in the head by a model of the Pilgrim 1 Mars lander, resulting in a skull fracture. NASA decides to replace him instead of delaying the mission. Fred is brought to NASA to see if he has what it takes to be an astronaut; he, along with Gordon Peacock, go through a series of exercises, which sees Fred do well, even going as far to break every record that Bill had. In the end, Fred gets the job. While getting ready to board the Aries, Fred chickens out and refuses to go on the mission. Bud Nesbitt Beau Bridges, who Wick claims is the cause of the Apollo 13 accident, tells Fred about the three commemorative coins given to him by President Johnson. He gave one coin to Neil Armstrong, another to Jim Lovell, and finally shows Randall a gold coin reading Bravery. It hasnt done me much good, Bud says, Maybe itll mean something to you one day. Randall then quotes the Cowardly Lion from The Wizard of Oz: If I were king of the forest! Fred, along with Commander Overbeck, geologist Julie Ford Jessica Lundy, and Ulysses, a trained chimpanzee, will look for fossils on Mars. To save on resources, crew members are put into hypersleep for eight months while the ship heads towards Mars. Ulysses purposely takes Freds hypersleep chamber for his own and Fred has to sleep in Ulysses chimpshaped chamber. He sleeps for only 13 minutes and has to stay up for eight months. While looking at Mars weather data, Fred notices severe sandstorms that could endanger the crew. He contacts Bud in Houston and tells him about the storms that are forecast to hit the landing site. If the crew get caught in the storms, they could be lost forever. Bud tells Wick about the situation but Wick ignores him. The crew makes it to Mars, after Overbeck barks at Fred for being awake the whole time and using all the foodexcept food that the former despises anchovy paste, creamed liver, and gefilte fishfor painting. They land the Pilgrim on the Martian surface. As Overbeck prepares to be the first human to step on Mars, Fred slips from the ladder and lands first. A day after the crew lands, the sandstorms arrive ahead of schedule. After almost losing Overbeck and Ulysses in the sandstorm, the crew lifts off from the Martian surface. Wick is replaced by Bud when it becomes clear that Wick does not trust his NASA crew. The ship has almost made it out of the sandstorm when rocks kicked up by the wind hit the lander. Pilgrim 1 loses power and begins to spin out of control. Fred has to rewire the entire system, reboot it and power everything back up in less than two minutes or they will crash. With less than 20 seconds, he has to complete the circuit. He frantically searches for something and finally shoves the commemorative coin into the slot, allowing the lander to regain power. The crew safely return to the Aries orbiting Mars. Fred then asks Julie to dance with him in zero gravity to When You Wish Upon A Star while dancing in clothes made from the space blankets Randall cut up during his accident with the sleep pod. As Fred gets ready for hypersleep one last time, Ulysses climbs into his hypersleep chamber once again, forcing Fred to stay up for another eight months on the journey back home. In a postcredits scene, the crews flag pole on Mars is shown missing its flag. It is revealed that Randalls American flag boxers, which were earlier used as a replacement for the original flag, had been stolen by a Martian.