#include <bits/stdc++.h>
using namespace std;
int main() {
  long int T, S, q, i, j, b, c, sum = 0;
  cin >> T >> S >> q;
  int a = S;
  while (T > a) {
    a = a * q;
    sum++;
  }
  cout << sum;
}
