Poj1001

Accept version of Poj1001