solution for uva 434