#include <bits/stdc++.h>
using namespace std;
const long long N = 3e4 + 1e3;
const long long M = 500 + 5;
const long long sz = 1399;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  vector<long long> a;
  for (long long i = 0; i < n; i++) {
    long long x;
    cin >> x;
    a.push_back(x);
  }
  long long ans = 1;
  long long r = 0;
  set<long long> all;
  for (long long i = 0; i < n; i++) {
    long long x = a[i] * 2;
    r = max(r, i);
    while (r < n && a[r] <= x) {
      r++;
      x = a[r - 1] * 2;
    }
    r--;
    ans = max(ans, r - i + 1);
  }
  cout << ans << '\n';
  return 0;
}
