import math

def main():
  N, K = map(int, input().split())
  i = 1
  tmp = 1
  
  while i > -1:
    if N >= K ** i:
      tmp += 1
    else:
      print(tmp)
      return
    
    i += 1
  
  
main() import math math def main():
  N, K = map(int, input().split())
  i = 1
  tmp = 1
  
  while i > -1:
    if N >= K ** i:
      tmp += 1
    else:
      print(tmp)
      return
    
    i += 1
  
   main N, K = map(int, input().split()) N map(int, input().split()) map int input().split() ().split () input split K i = 1 i 1 tmp = 1 tmp 1 while i > -1:
    if N >= K ** i:
      tmp += 1
    else:
      print(tmp)
      return
    
    i += 1
  
   i > -1 i -1 if N >= K ** i:
      tmp += 1
    else:
      print(tmp)
      return
    
     N >= K ** i N K ** i K i tmp += 1 tmp 1 print(tmp) print tmp return i += 1 i 1 main() main def main():
  N, K = map(int, input().split())
  i = 1
  tmp = 1
  
  while i > -1:
    if N >= K ** i:
      tmp += 1
    else:
      print(tmp)
      return
    
    i += 1
  
   def main():
  N, K = map(int, input().split())
  i = 1
  tmp = 1
  
  while i > -1:
    if N >= K ** i:
      tmp += 1
    else:
      print(tmp)
      return
    
    i += 1
  
   main
import math

def main():
  N, K = map(int, input().split())
  i = 1
  tmp = 1
  
  while i > -1:
    if N >= K ** i:
      tmp += 1
    else:
      print(tmp)
      return
    
    i += 1
  
  
main()