The AC version of UVa#10154.