uva 639, undone