You will be given a definition of a task first, then some input of the task.
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: unmanned NASA space probe called is dragged into intergalactic wormhole and crash-lands on Earth-like planet on other side of galaxy, Fact2: scientists have to find way to help retrieve wayward craft Faced with loss of probe and probable loss of budget, Fact3: Technical genius chimp gets scientists to pick them to explore planet and get probe back with help of Luna and bombastic commander, Fact4: wormhole leaving Ham with task of getting ship out and landing it, Fact5: ship is taken by group of aliens sent by Zartog planet along with Titan
Output:
Ham III, grandson of the first chimpanzee in space, is a cannonball at his circus, which his grandfathers friend Houston criticizes. Meanwhile, an unmanned NASA space probe called the Infinity is dragged into an intergalactic wormhole and crashlands on an Earthlike planet on the other side of the galaxy. Zartog, an evilminded inhabitant, accidentally discovers how to take manual control of the onboard machinery and uses it to enslave the population. Faced with the loss of the probe and probable loss of their budget, the scientists have to find a way to regain contact with the probe, to help retrieve the wayward craft. Technical genius chimp Comet gets the scientists to pick them as astronauts to explore the planet and get the probe back, with the help of the fearless Lt. Luna, and their bombastic commander, Titan. The Senator likes the idea, but wants something extra special to grab the attention of the media, and picks Ham. Ham is uninterested in the mission, but he is launched into space despite his best efforts to escape the scientists training facility. The three chimps enter the wormhole, where Titan and Luna pass out from the pressure, leaving Ham with the task of getting the ship out and landing it. This is done, and Ham and Luna explore the planet, during which their ship, along with Titan, is taken by a group of aliens sent by Zartog. Ham and Luna begin their journey to Zartogs palace, and on the way they meet one of the inhabitants, known to them as Kilowatt. Kilowatt offers to lead them to the palace, but soon after they encounter a flesh eating monster in a cave. The monster blocks the exit, but Kilowatt distracts it, sacrificing herself so Ham and Luna can escape. The two chimps finally reach the palace, where they discover that Titan has been teaching Zartog some of the probes features. They rescue him and are able to board their ship, but just as they are about to leave, Ham glances outside and sees Zartog torturing some of the other aliens. He then tells Titan and Luna that they indirectly sent the probe there, and that they owe it to Kilowatt to help save the planet. The three of them exit the ship, which blasts off set to autopilot, but as they are trying to think of a plan, Zartog attacks them with the probe. Just as they are about to get destroyed, Titan tricks Zartog into triggering an ejection mechanism in the probe, which in turn leads to his defeat. The chimps then discover that Kilowatt has survived, and they are able to make contact with Comet and Houston back on Earth through a walkietalkie. Houston reminds them that if they can redesign the probe, then they can use it to get back to Earth. They manage to do this with help from the planets inhabitants and they use an erupting volcano to get the thrust they need to escape the planets gravity. They go into space, and just as they are about to reenter the wormhole, Titan hands the controls over to Ham, since Ham is the only one who can withstand the pressure, and thus, the only one who can pilot the ship home. Titan and Luna once again pass out. Ham is unsure if he is up to the task until he has a mental conversation with his grandfather, who tells him to believe in himself and to just do things his Hams way. Ham manages to manoeuver the ship back to Earth and land it with Lunas help, and the Senator, under pressure from the press, decides to dramatically increase the space programs funding. The film ends with a celebration being held for the chimps return.