solve problem 062, but not run for 5