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