Part of 1997 Finnish National High School Mathematics Competition
Source: Finnish Mathematics Competition 1997, Final Round, Problem 1