#include <bits/stdc++.h>
using namespace std;
using namespace std;
long long z = 1000000007;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  t = 1;
  while (t--) {
    long long n;
    cin >> n;
    long long ar[n], ar1[n];
    memset(ar1, 0, sizeof(ar1));
    for (long long i = 0; i < n; i++) cin >> ar[i];
    long long p = 1;
    ar1[n - 1] = 1;
    for (long long i = n - 2; i >= 0; i--) {
      if (2 * ar[i] >= ar[i + 1]) {
        p++;
        ar1[i] = p;
      } else
        p = 1;
    }
    long long mx = ar1[0];
    for (long long i = 1; i < n; i++)
      if (ar1[i] > mx) mx = ar1[i];
    cout << mx << "\n";
  }
}
