#include <bits/stdc++.h>
using namespace std;
long long int a[200005];
int main() {
  int n, i, j, s = 1, m = 1;
  cin >> n;
  for (i = 1; i <= n; i++) cin >> a[i];
  for (i = n; i >= 1; i--) {
    if (a[i - 1] * 2 >= a[i]) {
      s++;
    } else {
      m = max(m, s);
      s = 1;
    }
  }
  cout << m;
  return 0;
}
