Updated Live Archive/UVA problem 6135/12528.