Initial commit of UVA 11512