added uva 10327, 401