Use `Long` instead of `Int` to avoid overflow.