UVa 352 Accepted