Input (grade 13): They were descendants of Charles of Valois, the fourth son of King Philip III and based their claim to be ahead of Edward III of England and Joan II of Navarre according to the Salic law.
Output (grade 8): The kings of the House of Valois were descended from Charles of Valois who was the third son of Philip III of France.