poj2485 tow methods