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