solution for uva 11636