Uva online judge problem no 10055