added uva 111, 706