write: simplify BigInt and reverse