problem 1014