Art of Problem Solving

2007 Cyprus MO/Lyceum/Problem 2