#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long int arr[n];
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  int flag = 1;
  long long int max1 = 0;
  long long int l = 0, r = 0;
  int c = 1;
  for (int i = 0; i < n - 1; i++) {
    long long int an = 2 * arr[i];
    if (an < arr[i + 1]) {
      flag = 1;
      c = 0;
      r = 0;
      l = 0;
    } else {
      c = 1;
      if (flag == 1) {
        l = i;
        flag = 0;
      }
      r = i + 1;
    }
    if (r - l > max1 && c == 1) {
      max1 = r - l;
    }
  }
  if (max1 <= 0) {
    cout << "1" << endl;
  } else {
    cout << max1 + 1 << endl;
  }
}
