UVa Problem 193