UVa 383 accepted