poj3368
solve