#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, a[200005];
  while (scanf("%d", &n) != EOF) {
    for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
    int ans = 1, maxn = 1;
    for (int i = 1; i <= n - 1; i++) {
      if (a[i + 1] - a[i] <= a[i]) {
        ans++;
        if (ans > maxn) maxn = ans;
      } else
        ans = 1;
    }
    printf("%d\n", maxn);
  }
}
