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