#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long a[n];
  int l = 0, m = 0;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 1; i < n; i++) {
    if (a[i] <= a[i - 1] * 2) {
      l++;
      m = max(m, l);
    } else
      l = 0;
  }
  cout << m + 1;
}
