Part of OIFMAT II 2012
Source: OIFMAT II 2012 day 1 p3 - Chilean Math Forum FMAT Olympiad https://artofproblemsolving.com/community/c2484778_oifmat