r=io.read l=math.log while""do print(l(r"*n")/l(r()))end