#include <bits/stdc++.h>
using namespace std;
const int NMAX = 3e5;
long long v[NMAX + 5];
int main() {
  int n, sol = 0;
  cin >> n;
  for (int i = 0; i < n; ++i) cin >> v[i];
  for (int i = 0; i < n; ++i) {
    int j = i;
    while (j < n - 1 && v[j + 1] <= 2 * v[j]) ++j;
    sol = max(sol, j - i + 1);
    i = j;
  }
  cout << sol;
  return 0;
}
