Added UVa problem 11786.