#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vll = vector<ll>;
using vvll = vector<vll>;
using vb = vector<bool>;
using vd = vector<double>;
using vs = vector<string>;
using vpii = vector<pair<int, int>>;
using vpll = vector<pair<ll, ll>>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
void solve() {
  int n;
  cin >> n;
  vi a(n);
  for (ll i = 0; i < n; i++) cin >> a[i];
  ;
  int cnt = 1, mx = 1;
  for (ll i = (1); i < (n); i++) {
    if (a[i] <= 2 * a[i - 1])
      cnt++;
    else
      cnt = 1;
    mx = max(cnt, mx);
  }
  cout << mx << '\n';
}
int main() {
  ios_base::sync_with_stdio(false);
  solve();
}
