import sys

N, K = map(int, sys.stdin.buffer.read().split())

i = 0
while N:
  N //= K
  i += 1

print(i) import sys sys N, K = map(int, sys.stdin.buffer.read().split()) N map(int, sys.stdin.buffer.read().split()) map int sys.stdin.buffer.read().split() sys.stdin.buffer.read().split sys.stdin.buffer.read() sys.stdin.buffer.read sys.stdin.buffer sys.stdin sys stdin buffer read split K i = 0 i 0 while N:
  N //= K
  i += 1 N N //= K N K i += 1 i 1 print(i) print i N, K = map(int, sys.stdin.buffer.read().split()) map(int, sys.stdin.buffer.read().split()) N i += 1 1 i N //= K K N K = map(int, sys.stdin.buffer.read().split()) map(int, sys.stdin.buffer.read().split()) K i = 0 0 i
import sys

N, K = map(int, sys.stdin.buffer.read().split())

i = 0
while N:
  N //= K
  i += 1

print(i)
