import math while 1:print("%g"%math.log(*map(int,input().split())))