a = list(map(int, input().split()))
b = a[0]
c = 0
while b > 0:
  b = b // a[1]
  c += 1
print(c) a = list(map(int, input().split())) a list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split b = a[0] b a[0] a 0 c = 0 c 0 while b > 0:
  b = b // a[1]
  c += 1 b > 0 b 0 b = b // a[1] b b // a[1] b a[1] a 1 c += 1 c 1 print(c) print c a = list(map(int, input().split())) list(map(int, input().split())) a c = 0 0 c b = b // a[1] b // a[1] b c += 1 1 c b = a[0] a[0] b
a = list(map(int, input().split()))
b = a[0]
c = 0
while b > 0:
  b = b // a[1]
  c += 1
print(c)
