Problem 47 solved