Base and exponent identification