import pymath
base = float(input())
result = float(input())
print("The awnser is: {}".format(pymath.algebra.log(base, result)))
import pymath
base = float(input())
result = float(input())
print("The awnser is: {}".format(pymath.algebra.log(base, result)))