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