#include <bits/stdc++.h>
const int INT_INF = 0x3f3f3f3f;
const int INT_M_INF = 0x7f7f7f7f;
const long long LL_INF = 0x3f3f3f3f3f3f3f3f;
const long long LL_M_INF = 0x7f7f7f7f7f7f7f7f;
const int MAXN = 2 * 1e5;
const int MAXT = 1000000 + 10;
using namespace std;
int main(void) {
  std::ios::sync_with_stdio(false);
  cin.tie(0);
  int a[MAXN];
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int res = 0;
  int res_max = 0;
  for (int i = 0; i < n - 1; i++) {
    if (a[i] * 2 >= a[i + 1]) {
      res_max = max(res_max, ++res);
    } else {
      res = 0;
    }
  }
  cout << res_max + 1 << endl;
  return 0;
}
