Modular Exponentiation

Compute ab mod m efficiently (binary exponentiation).

Input
Result

Enter values.