Update poj2559.cpp