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