Part of 2010 Turkey Junior National Olympiad
Source: Junior Turkish Mathematical Olympiad 2010 Problem 4