Part of 2015 Federal Competition For Advanced Students
Source: 46th Austrian Mathematical Olympiad National Competition Part 1 Problem 3