Input (grade 5): Sam rescues Frodo, and they journey through Mordor.
Output (grade 6): Sam frees Frodo and gives him back the One Ring. The two hobbits disguise themselves as orcs, escape from the Tower and continue their journey through Mordor.