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