#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  ;
  int n;
  cin >> n;
  vector<int> v(n);
  for (int i = 0; i < n; i++) cin >> v[i];
  int c = 0, m = INT_MIN;
  for (int i = 0; i < n; i++) {
    if (v[i] <= 2 * v[i - 1]) {
      c++;
    } else {
      m = max(m, c);
      c = 1;
    }
  }
  m = max(m, c);
  cout << m << endl;
}
