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