ostream & operator << (ostream &os, Bigint x) { if (x.negative) os << '-'; for (unsigned i = 0; i != x.num.size(); ++i) os << x.num[i]; return os; }