Added UVa problem 2646.