#include <bits/stdc++.h>
using namespace std;
const int maxn = 200000 + 7;
long long a[maxn];
int ans = 1;
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%lld", &a[i]);
  int sum = 1;
  for (int i = n - 1; i >= 1; i--)
    if (a[i] * 2 >= a[i + 1]) {
      sum++;
    } else {
      ans = max(sum, ans);
      sum = 1;
    }
  ans = max(sum, ans);
  printf("%d\n", ans);
}
