#include <bits/stdc++.h>
using namespace std;
const int INF = int(pow(2, 31) - 1);
int n, d[200002];
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n;
  for (int i = 0; i < int(n); i++) cin >> d[i];
  int temp = 1;
  int R = 1;
  for (int i = 1; i < n; i++) {
    if (d[i - 1] * 2 >= d[i]) {
      temp++;
    } else {
      temp = 1;
    }
    R = max(R, temp);
  }
  cout << R << endl;
}
