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