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