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