Update poj2106.cpp