Stefan | ᕕ(◠ڼ◠)ᕗ says to YSITD
extend the algo to python, where every number is a bignum