problem 1045