solution for uva 10881