1985 AJHSME Problem 3

Invalid username
Login to AoPS