#include <bits/stdc++.h>
using namespace std;
inline int read() {
  char c = getchar();
  int num = 0;
  int f = 1;
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    num = (num << 3) + (num << 1) + (c ^ 48);
    c = getchar();
  }
  return num * f;
}
inline void qwq(int x) {
  if (x > 9) qwq(x / 10);
  putchar(x % 10 + '0');
}
inline void write(int x) {
  if (x < 0) {
    x = -x;
    putchar('-');
  }
  qwq(x);
  putchar('\n');
}
int co[200010];
int main() {
  int n = read();
  for (int i = 1; i <= n; i++) {
    co[i] = read();
  }
  int last = 0;
  int ans = 0;
  for (int i = 1; i <= n; i++) {
    if (i == n) {
      ans = max(ans, n - last);
    }
    if (co[i] * 2 < co[i + 1]) {
      ans = max(ans, i - last);
      last = i;
    }
  }
  write(ans);
  return 0;
}
