An Arithmetic Puzzle From Polish Mathematical Olympiads