score = list(map(int,input().split()))
keta = 0
answer = 1
while score[0] >= answer:
    answer *= score[1]
    keta += 1
print(keta) score = list(map(int,input().split())) score list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split keta = 0 keta 0 answer = 1 answer 1 while score[0] >= answer:
    answer *= score[1]
    keta += 1 score[0] >= answer score[0] score 0 answer answer *= score[1] answer score[1] score 1 keta += 1 keta 1 print(keta) print keta keta += 1 1 keta keta = 0 0 keta answer = 1 1 answer answer *= score[1] score[1] answer score = list(map(int,input().split())) list(map(int,input().split())) score
score = list(map(int,input().split()))
keta = 0
answer = 1
while score[0] >= answer:
    answer *= score[1]
    keta += 1
print(keta)