solve poj3069
solve poj3253