#include <bits/stdc++.h>
using namespace std;
const double EPS = 1e-12;
const int INF = numeric_limits<int>::max() / 2;
const int MOD = 1e9 + 7;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<long long> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  a.push_back(2222222222);
  long long res = 1, cnt = 1, last = a[0];
  for (int i = 1; i < n; i++) {
    if (a[i] <= last * 2) {
      cnt++;
      last = a[i];
      continue;
    }
    res = max(res, cnt);
    cnt = 1;
    last = a[i];
  }
  res = max(res, cnt);
  cout << res << endl;
}
