problem 47 solved