#include <bits/stdc++.h>
using namespace std;
int n, a[200005], ans;
int main() {
  cin >> n;
  cin >> a[0];
  int cnt = 1;
  for (int i = 1; i < n; i++) {
    cin >> a[i];
    if (a[i] > a[i - 1] * 2) {
      ans = max(ans, cnt);
      cnt = 1;
      continue;
    }
    cnt++;
  }
  cout << max(ans, cnt) << endl;
  return 0;
}
