UVa 10307 accepted