poj to 1005