problem 51 solved