#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-7;
const long long INFF = 1e18;
const int INF = 1e9;
const int mod = 1e9 + 7;
const int MAX = 2e5 + 7;
int a[MAX];
int main(void) {
  int n;
  scanf("%d", &n);
  ;
  for (int i = (1); i < (n + 1); ++i) scanf("%d", a + i);
  int ans = 1, cnt = 1, pv = a[1];
  for (int i = (2); i < (n + 1); ++i) {
    if (pv * 2 >= a[i]) {
      pv = a[i];
      cnt++;
      ans = max(ans, cnt);
    } else {
      pv = a[i];
      cnt = 1;
    }
  }
  printf("%d\n", ans);
  return 0;
}
