Input (grade 8): Heimdall was destined to be the last of the gods to perish at Ragnarök when he and Loki would slay one another.
Output (grade 7): Heimdall was said to be the last of the gods to die at Ragnarök when he and Loki would kill one another.