poj 1228  unfinished.