solution for uva 11729