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