Part of 2000 Greece Junior Math Olympiad
Source: Greece National Olympiad 2000 , Juniors , Problem 4.