problem 1297 (the wrong answer yet)