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