#include <bits/stdc++.h>
using namespace std;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t, n, i, j, k, ans = 0, temp = 1, a[200001];
  cin >> n;
  for (i = 0; i < n; i++) cin >> a[i];
  ans = 1;
  for (i = 1; i < n; i++) {
    if (a[i] <= 2ll * a[i - 1])
      temp++;
    else {
      ans = max(ans, temp);
      temp = 1;
    }
  }
  ans = max(ans, temp);
  cout << ans;
}
