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