Part of 2012 Middle European Mathematical Olympiad
Source: Middle European Mathematical Olympiad 2012 - Team Compt. T-7