#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int x;
  scanf("%d", &x);
  return x;
}
int n;
int a[202000];
int b[202000];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  a[n + 1] = 0x7f7f7f7f;
  for (int i = 1; i <= n; i++) {
    b[i] = (a[i] * 2 >= (a[i + 1]));
  }
  int len = 0;
  int cnt = 0;
  for (int i = 1; i <= n; i++) {
    if (b[i]) {
      ++cnt;
    } else {
      len = max(cnt, len);
      cnt = 0;
    }
  }
  len = max(cnt, len);
  cout << min(len + 1, n) << endl;
  return 0;
}
