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