poj problem