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