Input (grade 4): It was a herbivore that walked both as a biped and a quadruped.
Output (grade 3): It was a herbivore that walked both as biped and a quadruped.