#include <bits/stdc++.h>
inline int max(int x, int y) { return x > y ? x : y; }
int main() {
  int n, a[200005], t = 1, ans = 1;
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) scanf("%d", a + i);
  for (int i = 2; i <= n; ++i) {
    if (a[i - 1] * 2 >= a[i])
      t++;
    else
      t = 1;
    ans = max(ans, t);
  }
  printf("%d\n", ans);
  return 0;
}
