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