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