#include <bits/stdc++.h>
using namespace std;
int q, s, t, n, m, i, j, k, l;
int main() {
  cin >> t >> s >> q;
  int t1;
  while (s < t) {
    s = q * s;
    i++;
  }
  cout << i << endl;
  return 0;
}
