#include <bits/stdc++.h>
using namespace std;
int main() {
  int T, S, q;
  cin >> T >> S >> q;
  int time_left = 3;
  long long count = 0;
  while (S < T) {
    S = S * q;
    count++;
  }
  cout << count << endl;
}
