solution for uva 11389