#include <bits/stdc++.h>
using namespace std;
int a[200003], b[200003];
int main() {
  int n, j = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  a[n] = INT32_MAX;
  int currindex = 0, lastindex = 0, max = 0, z = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] * 2 < a[i + 1]) {
      lastindex = currindex;
      currindex = i;
      int diff = currindex - lastindex;
      if (lastindex == 0 && z < 1) {
        diff++;
        z++;
      }
      if (diff > max) max = diff;
    }
  }
  cout << max << endl;
}
