poj 3805 unfinished