#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int *arr = new int[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  int out = 0;
  for (int i = 0; i < n; i++) {
    int j = i;
    while (j + 1 < n && arr[j + 1] <= arr[j] * 2) {
      j++;
    }
    out = max(out, j - i + 1);
    i = j;
  }
  cout << out << endl;
}
