#include <bits/stdc++.h>
using namespace std;
const long long INF = 999999999999999999;
const double PI = acos(-1.0);
void stop() { exit(0); }
long long A[200005];
int main() {
  ios::sync_with_stdio(false);
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> A[i];
  }
  long long res = 1;
  long long curr = 1;
  for (long long i = 0; i < n - 1; i++) {
    if (A[i] * 2 >= A[i + 1]) {
      curr++;
    } else {
      if (curr > res) res = curr;
      curr = 1;
    }
  }
  if (curr > res) res = curr;
  cout << res;
  stop();
}
