poj 2405. math. boring