UVa11582 accepted.