Input (grade 8): It was directed by Sam Raimi and written by David Koepp, and stars Tobey Maguire, Willem Dafoe, Kirsten Dunst, and James Franco.
Output (grade 5): It was written by David Koepp and directed by Sam Raimi.