added uva 494
added uva 499
added uva 10300
added uva 10420