add uva10706 and poj 1019