UVA 12488

small changes