Use exponents so that result stays under INT_MAX