A King kept a magic chest in his treasury. To open the chest, three positive integers , , and are required, which satisfy the two conditions carved on the chest:
The King declared that to open the chest, the value of must be provided as the secret code. What is the value of ?