2006 Hellenic Mathematical Olympiad, Problem 4

Problem 4