1985 AJHSME Problem 1

Invalid username
Login to AoPS