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