#include <bits/stdc++.h>
using namespace std;
int main() {
  int len;
  scanf("%d", &len);
  double low;
  scanf("%lf", &low);
  double now;
  len--;
  int max_len = 1;
  int nlen = 1;
  while (len--) {
    scanf("%lf", &now);
    if (now / 2 > low)
      nlen = 1;
    else
      nlen++;
    low = now;
    max_len = max(max_len, nlen);
  }
  printf("%d\n", max_len);
  return 0;
}
