#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int t = 1;
  while (t--) {
    long long int n;
    cin >> n;
    vector<long long int> v(n);
    for (long long int i = 0; i < n; i++) cin >> v[i];
    long long int maxi = 1;
    long long int l = 1;
    for (long long int i = 1; i < n; i++) {
      if (v[i] <= 2 * v[i - 1])
        l++;
      else
        l = 1;
      maxi = max(maxi, l);
    }
    cout << maxi << endl;
  }
}
