added uva 487