problem 1013