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