#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 5;
int main() {
  int n;
  int a;
  int pre;
  int temp = 1;
  int max_len = 1;
  scanf("%d", &n);
  for (int i = 0; i < n; ++i) {
    scanf("%d", &a);
    if (i == 0) {
      pre = a * 2;
      continue;
    }
    if (a <= pre)
      ++temp;
    else {
      max_len = max(max_len, temp);
      temp = 1;
    }
    pre = a * 2;
  }
  max_len = max(max_len, temp);
  printf("%d\n", max_len);
  return 0;
}
