#include <bits/stdc++.h>
using namespace std;
long long read() {
  long long r = 0, f = 1;
  char c = getchar();
  while (!isdigit(c)) {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (isdigit(c)) {
    r = (r << 3) + (r << 1) + c - '0';
    c = getchar();
  }
  return r * f;
}
int a[301111];
int main() {
  int n = read();
  for (int i = 1; i <= n; ++i) a[i] = read();
  int last = n, lenth = 1, ans = -1;
  for (int i = n - 1; i >= 1; --i)
    if (a[i] * 2 >= a[last])
      last = i, ++lenth;
    else
      last = i, ans = max(lenth, ans), lenth = 1;
  ans = max(ans, lenth);
  cout << ans << endl;
  return 0;
}
