Added UVa problem 12614.