Part of 2015 Regional Competition For Advanced Students
Source: 46th Austrian Mathematical Olympiad Regional Competition Problem 4