sys.maxint is 2^63-1 on 64-bit architectures, which is too large for an int.