Input (grade 9): After the events of The Wrath of Khan, the crew of the USS Enterprise returns to Earth after the death of Spock (Leonard Nimoy).
Output (grade 4): It happens after the events of the last film, The Wrath of Khan.