Part of 2011 Paraguay Mathematical Olympiad
Source: Paraguayan National Olympiad 2011, Level 3, Problem 1