solution for uva 12124