N, K = [int(_) for _ in input().split()]
ans = 0
while N:
    N //= K
    ans += 1
print(ans) int(_) for _ in input().split() for _ in input().split() _ input().split() ().split () input split for _ in input().split() int(_) int _ N, K = [int(_) for _ in input().split()] N [int(_) for _ in input().split()] K ans = 0 ans 0 while N:
    N //= K
    ans += 1 N N //= K N K ans += 1 ans 1 print(ans) print ans N, K = [int(_) for _ in input().split()] [int(_) for _ in input().split()] N N //= K K N K = [int(_) for _ in input().split()] [int(_) for _ in input().split()] K ans += 1 1 ans ans = 0 0 ans
N, K = [int(_) for _ in input().split()]
ans = 0
while N:
    N //= K
    ans += 1
print(ans)
