If N is omitted, default to 0. If N is negative or non-integer, print an error to stderr and exit non-zero.
Your polyglot must be a single file that can be used both as a Python script and as C source. The Python and C implementations should agree on the same constants and sequence.
Assume the environment has Python 3.x and GCC 13.x for reproducibility.