End of Year Sale: Use Coupon Code END2025 to Get Extra 25% Off.
result to 1 and current_power to a mod 1337.b in reverse order.d in b, compute result = (result * (current_power^d mod 1337)) mod 1337.current_power to (current_power^10) mod 1337 for the next iteration.result as the final answer.