#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t, s, q;
  cin >> t >> s >> q;
  long long sum = 0;
  while (s < t) {
    s = s * q;
    sum++;
  }
  cout << sum;
  return 0;
}
