Added UVa problem 644.