UVa 278: just demonstrate it can be computed O(1)