JBMO 2026 | PROBLEM 1 | OFFICIAL SOLUTION