#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long n;
  cin >> n;
  vector<long long> vec(n);
  for (long long i = 0; i < n; i++) {
    cin >> vec[i];
  }
  vec.push_back(vec.back());
  long long ans = 1;
  long long cnt = 1;
  for (long long i = 1; i < n; i++) {
    if (vec[i] > vec[i - 1] * 2) {
      ans = max(ans, cnt);
      cnt = 0;
    }
    cnt++;
  }
  ans = max(ans, cnt);
  cout << ans << endl;
}
