#include <bits/stdc++.h>
using namespace std;
int main() {
  int T, S, q, result = 1;
  cin >> T >> S >> q;
  while (T > S) {
    S = S * q;
    if (T > S) {
      result++;
    }
  }
  cout << result << endl;
}
