UVa 147 in progress