#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 5;
long long test, n, m, k, x, y, q, z, d, ans, b[N], a[N];
void solve() {
  cin >> n;
  long long cnt = 1;
  for (long long i = 1; i <= n; i++) {
    cin >> a[i];
    if (i > 1 && a[i] <= 2 * a[i - 1])
      cnt++;
    else
      cnt = 1;
    ans = max(ans, cnt);
  }
  cout << ans;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  solve();
}
