Part of 2016 South East Mathematical Olympiad
Source: China South East Mathematical Olympiad 2016 Grade 10 Prob. 6