poj2684

#3 fixed