Input (grade 8): Pompey was a rival of Marcus Licinius Crassus, and at first an ally to Gaius Julius Caesar.
Output (grade 7): Pompey was a rival of Marcus Licinius Crassus and an ally to Gaius Julius Caesar.