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