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