add uva 11300 problem