UVa 10034 Accepted