UVa10723 accepted.