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