UVa 210: Accepted