uva; solve "Dominos 2" from Volume 115