Input (grade 12): The Tragical History of Hamlet, Prince of Denmark, or more simply Hamlet, is a tragedy by William Shakespeare, believed to have been written between 1599 and 1601.
Output (grade 4): The Tragedy of Hamlet, Prince of Denmark is a play by William Shakespeare.