Problem1005 solved