Input (grade 6): The far side of the river was guarded by Cerberus, the three-headed guard dog of Hades.
Output (grade 4): Its gates are guarded by the three-headed dog Cerberus.