problem 161 solved