#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  vector<long long> A(n);
  for (long long i = 0; i < n; i++) {
    cin >> A[i];
  }
  long long count = 0, countm = 0;
  for (long long i = 1; i < n; i++) {
    if (A[i] <= A[i - 1] * 2)
      count++;
    else {
      if (countm < count) countm = count;
      count = 0;
    }
  }
  if (countm < count) countm = count;
  cout << countm + 1;
  return 0;
}
