Added UVA problem 573.