pat-1010 solved