#include <bits/stdc++.h>
using namespace std;
int main() {
  int a0, a1, n, max, k;
  cin >> n >> a0;
  k = 1;
  max = 1;
  for (int i = 1; i < n; i++) {
    cin >> a1;
    if (a1 <= a0 * 2) {
      k++;
      if (k > max) max = k;
    } else
      k = 1;
    a0 = a1;
  }
  cout << max;
  return 0;
}
