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