poj program solve