#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, i, c = 0, ma = 0;
  cin >> t;
  long int k, k1;
  cin >> k;
  c = 1;
  for (i = 0; i < t - 1; i++) {
    cin >> k1;
    if (k1 <= 2 * k)
      c += 1;
    else {
      ma = max(ma, c);
      c = 1;
    }
    k = k1;
  }
  ma = max(ma, c);
  cout << ma;
}
