#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  vector<long long int> v;
  for (long long int i = 0; i < n; i++) {
    long long int x;
    cin >> x;
    v.push_back(x);
  }
  long long int maxi = 1;
  long long int inf = 0;
  long long int i = 0;
  for (i = 1; i < n; i++) {
    if (v[i] <= 2 * v[i - 1])
      continue;
    else {
      maxi = max(maxi, i - inf);
      inf = i;
    }
  }
  maxi = max(maxi, i - inf);
  cout << maxi;
  return 0;
}
