UVa Problem 908