#include <bits/stdc++.h>
using namespace std;
long long mem, neww;
int n;
int main() {
  cin >> n;
  cin >> mem;
  int maxx = 1, corr = 1;
  for (int i = 1; i < n; i++) {
    cin >> neww;
    if (neww <= 2 * mem)
      corr++;
    else
      corr = 1;
    if (corr > maxx) maxx = corr;
    mem = neww;
  }
  cout << maxx;
  return 0;
}
