UVa 10440 accepted!