a,b=map(int,input().split())
res = 1
for i in range(100):
  if b**i > a:
    res = i
    break
print(res) a,b=map(int,input().split()) a map(int,input().split()) map int input().split() ().split () input split b res = 1 res 1 for i in range(100):
  if b**i > a:
    res = i
    break i range(100) range 100 if b**i > a:
    res = i
    break b**i > a b**i b i a res = i res i break print(res) print res b=map(int,input().split()) map(int,input().split()) b res = i i res a,b=map(int,input().split()) map(int,input().split()) a res = 1 1 res
a,b=map(int,input().split())
res = 1
for i in range(100):
  if b**i > a:
    res = i
    break
print(res)