Compare the Triplets