solution for uva 1445