UVa 11450 Accepted