Added UVa 10731 -- Test