#include <bits/stdc++.h>
using namespace std;
bool ok(long long &a, long long &b) {
  if (b <= 2 * a) return true;
  return false;
}
int main() {
  unsigned long long ans = 1;
  stack<long long> s;
  long long n;
  cin >> n;
  long long temp;
  cin >> temp;
  s.push(temp);
  for (long long i = 0; i < n - 1; ++i) {
    cin >> temp;
    while (!s.empty() && !ok(s.top(), temp)) {
      s.pop();
    }
    s.push(temp);
    if (ans < s.size()) ans = s.size();
  }
  cout << ans;
}
