modify uva11054, poj2940