Input (grade 13): Pompey joined his rival Marcus Licinius Crassus and his ally Julius Caesar in the unofficial military-political alliance known as the First Triumvirate.
Output (grade 7): Pompey was a rival of Marcus Licinius Crassus and an ally to Gaius Julius Caesar.