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