finished poj1363