UVa 12186 accepted.