Art of Problem Solving

1997 USAMO Problems/Problem 4