#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[200005];
  scanf("%d", &n);
  for (int i = 0; i < n; i++) scanf("%d", &a[i]);
  int s, t, m = 0;
  for (s = 0; s < n;) {
    t = s + 1;
    while (a[t] <= a[t - 1] * 2 && t < n) t++;
    int res = t - s;
    m = max(m, res);
    s = t;
  }
  printf("%d", m);
  return 0;
}
