TASK DEFINITION: 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.
PROBLEM: Fact1: corrupt police officer named blackmails her crime, Fact2: dentist hires Bernice to break into Christopher 's home and steal back jewelry, Fact3: Carl hop from bar to bar looking for someone, Fact4: old flame of Christopher 's tells her about artist bartender and mysterious man known only by nickname, Fact5: Bernice calls Carson to meet her in park with bag of jewelry

SOLUTION: Bernice Bernie Rhodenbarr, a former San Francisco burglar, resumes her life of crime when a corrupt police officer named Ray Kirschman blackmails her. A dentist, Dr. Cynthia Sheldrake, hires Bernice to break into her exhusband Christophers home and steal back her jewelry. Things take a turn for the worse when Christopher is murdered while Bernie is robbing his home, and thanks to Sheldrake and her lawyer Carson, Bernie is the only suspect. To clear her name Bernice and her friend Carl hop from bar to bar looking for someone who knew Christopher. They find out that Christopher had quite a few girlfriends... and boyfriends. Bernice has three new suspects after an old flame of Christophers tells her about an artist, a bartender, and a mysterious man known only by his nickname: Heeeeeeeres Johnny! Bernice investigates the artist and the bartender only to have them show up dead. With no clues or witnesses, Bernice waits for Dr. Sheldrake in her home to confront her. Demanding she tell her everything she knew about Christopher, she concludes that Cynthia herself had sex with her ex the night he was murdered. During the conversation the TV flashes to an episode of The Tonight Show Starring Johnny Carson. Bernice realizes Carson knew the doctors ex. Bernice calls Carson to meet her in the park with the bag of jewelry Bernice was commissioned to steal in the first place. Bernie has also deduced that Carson was in love with Christopher himself. A scuffle ensues and Bernice, along with her friend Carl and Ray, capture Carson.

PROBLEM: Fact1: Dr. Bill Harford and Alice are young married couple living in New York, Fact2: Hungarian man named attempts to seduce Alice, Fact3: host had been having sex with Mandy, Fact4: Alice tells him of recent fantasy, Fact5: Bill Disturbed by is called by daughter of patient Alice 's revelation

SOLUTION: Dr. Bill Harford and Alice are a young married couple living in New York. They attend a Christmas party hosted by a wealthy patient, Victor Ziegler, where Bill is reunited with Nick Nightingale, a medical school dropout who now plays piano professionally. While a Hungarian man named Sandor Szavost attempts to seduce Alice, two young models attempt the same with Bill. He is interrupted by his host who had been having sex with Mandy, a young woman who has overdosed on a speedball. Mandy recovers with Bills aid. The following evening at home, while smoking marijuana, when Alice asks him if he had sex with the two girls, Bill reassures her that he had not. She inquires if he is jealous of men who are attracted to her. He thinks women are more faithful than men. She tells him of a recent fantasy she had about a naval officer they had met on vacation. Disturbed by Alices revelation, Bill is called by the daughter of a patient who has just died. After visiting the home, he goes to a prostitute named Domino but Alice phones as Domino begins to kiss Bill. Meeting Nick at the jazz club, Bill learns that Nick has an engagement where he must play piano blindfolded. Bill learns that to gain admittance, one needs a costume, a mask, and the password, which Nick had written down. Bill goes to a costume shop and offers the owner, Mr. Milich, a generous amount of money to rent a costume. In the shop, Milich catches his teenage daughter with two Japanese men and expresses outrage at their lack of decency. Bill takes a taxi to the country mansion mentioned by Nick. He gives the password and discovers a sexual ritual is taking place. A woman warns him he is in terrible danger. A porter then takes him to the ritual room, where a disguised redcloaked Master of ceremonies confronts Bill with a question about a second password. Bill says he has forgotten it. The masked woman who had tried to warn Bill intervenes and insists that she will redeem him. Bill is ushered from the mansion and warned not to tell anyone about what happened there. Just before dawn, Bill arrives home guilty and confused. He finds Alice laughing loudly in her sleep and awakens her. While crying, she tells him of a troubling dream in which she was having sex with the naval officer and many other men, and laughing at the idea of Bill seeing her with them. Later that morning, Bill goes to Nicks hotel, where the desk clerk tells Bill that a bruised and frightened Nick checked out a few hours earlier after returning with two large, dangerouslooking men. Bill goes to return the costume, but not the mask, which he has misplaced, and learns Milich has sold his daughter into prostitution. Bill returns to the country mansion in his own car and is met at the gate by a man with a note warning him to cease and desist his inquiries. After reading a newspaper story about a beauty queen who died of a drug overdose, Bill views the body at the morgue and identifies it as Mandy. Bill is summoned to Zieglers house, where he is confronted with the events of the past night and day. Ziegler was one of those involved with the ritual orgy, and identified Bill and his connection with Nick. Ziegler claims that he had Bill followed for his own protection, and that the warnings made against Bill by the society are only intended to scare him from speaking about the orgy. However, he implies the society is capable of acting on their threats. Bill asks about the death of Mandy, whom Ziegler has identified as the masked woman at the party whod sacrificed herself to prevent Bills punishment, and about the disappearance of Nick, the piano player. Ziegler insists that Nick is safely back at his home in Seattle. Ziegler also says the punishment was a charade by the secret society to further frighten Bill, and it had nothing to do with Mandys death; she was a hooker and addict and had died from another accidental drug overdose. Bill does not know if Ziegler is telling the truth about Nicks disappearance or Mandys death, but he says nothing further. When he returns home, Bill finds the rented mask on his pillow next to his sleeping wife. He breaks down in tears and decides to tell Alice the whole truth of the past two days. The next morning, they go Christmas shopping with their daughter. Alice muses that they should be grateful that they have survived, that she loves him and there is something they must do as soon as possible. When Bill asks what it is, she replies, Fuck.

PROBLEM: Fact1: war to visit sister Louisa Bradley and niece, Fact2: Larry is traumatized by death of comrade, Fact3: comrade sacrificed himself on last day of war, Fact4: Darrell refuses job offer from father of friend, Fact5: Larry 's childhood friend settles into happy marriage with Bob MacDonald to lose him and baby in car crash

SOLUTION:
The film, in which W. Somerset Maugham Herbert Marshall is himself a minor character, drifting in and out of the lives of the major players, opens at a party held following World War I in 1919 at a Chicago country club. Elliott Templeton Clifton Webb, an expatriate, has returned to the United States for the first time since before the war to visit his sister, Louisa Bradley Lucile Watson, and his niece, Isabel Gene Tierney, engaged to be married to Larry Darrell Tyrone Power, of whom Elliott strongly disapproves because Larry has rejected the social class into which he was born, one which Elliott occupies and reveres. Larry is traumatized by the death of a comrade who sacrificed himself on the last day of the war to save Larry and announces that he plans to loaf on his small inheritance of 3,000 a year. He refuses a job offer from the father of his friend Gray John Payne, a millionaire who is hopelessly in love with Isabel, too. Larry and Isabel agree to postpone their marriage so that he can go to Paris to try to clear his muddled thoughts. Meanwhile, Larrys childhood friend, Sophie Nelson Anne Baxter, settles into a happy marriage with Bob MacDonald Frank Latimore, only to lose him and their baby in a car crash. In Paris, Larry immerses himself in a Bohemian life. After a year, Isabel visits and Larry asks her to marry him immediately. Isabel does not understand his search for meaning and breaks their engagement. Before she returns to Chicago she cannot carry through with a scheme to seduce Larry and trick him into making an honest woman of her. She marries Gray to provide her the elite social and family life she craves. Meanwhile, Larry works in a coal mine in France, where a defrocked priest, Kosti Fritz Kortner, urges him travel to India to learn from a mystic. Larry studies at a monastery in the Himalayas under the tutelage of the Holy Man Cecil Humphreys, then makes a lone pilgrimage to the mountaintop where he finds enlightenment. The Holy Man tells Larry to return to the world to share what he now knows about life. Back in Paris, Maugham meets Elliott by chance and learns that Isabel and her family are living with Elliott after being financially ruined by the stock market crash of 1929. Gray has had a nervous breakdown and suffers from terrible headaches. Elliott sold short before the crash and made a killing in the market. Maugham arranges a lunch for Elliott and his household to meet an old friend, who turns out to be Larry. Larry is able to help Gray using an Indian form of hypnotic suggestion. Later, while slumming at a disreputable nightclub, they encounter Sophie, now a drunkard. Larry undertakes Sophies reformation, and out of lofty motives arranges to marry her; but when he tells Isabel, who is still in love with him, she plots to prove to Larry that Sophies reform is only temporary. She successfully tempts Sophie back into drinking and Sophie disappears. Larrys last endeavour to reclaim his childhood companion from her depravity and despair proves fruitless. Sophie is murdered and her death reunites Larry and Maugham during the police investigation. Maugham and Larry visit Elliott on his deathbed in the South of France. Larry gives Elliott peace of mind after he is deliberately excluded from an important soiree hosted by a princess with whom he had a row, herself once an American Midwesterner like Elliott. Larry persuades Miss Keith Lanchester, her social secretary, to allow him to use a blank invitation to counterfeit one for Elliott. Isabel inherits her uncles fortune, which she can use to underwrite Grays attempt to rebuild his fathers bankrupt brokerage. Larry refuses to reconcile with Isabel, deducing that she caused Sophies return to drinking, and ultimately, her murder. Instead he decides to work his way back to America aboard a tramp steamer. Maugham tries to console Isabel with the knowledge that Larry is happy because he has found in himself the quality of true goodness.