ri = lambda S: [int(v) for v in S.split()]
def rii(): return ri(input())

N, K = rii()

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

print(count) int(v) for v in S.split() for v in S.split() v S.split() S.split S split for v in S.split() int(v) int v ri = lambda S: [int(v) for v in S.split()] ri lambda S: [int(v) for v in S.split()] [int(v) for v in S.split()] S def rii(): return ri(input()) rii N, K = rii() N rii() rii K count = 0 count 0 while N:
    N //= K
    count += 1 N N //= K N K count += 1 count 1 print(count) print count K = rii() rii() K ri = lambda S: [int(v) for v in S.split()] lambda S: [int(v) for v in S.split()] ri def rii(): return ri(input()) def rii(): return ri(input()) rii N, K = rii() rii() N count = 0 0 count count += 1 1 count N //= K K N
ri = lambda S: [int(v) for v in S.split()]
def rii(): return ri(input())

N, K = rii()

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

print(count)
