#include <bits/stdc++.h>
using namespace std;
int a[200005];
int main() {
  int n, ans = 1, temp = 1;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  for (int i = 2; i <= n; i++) {
    if (a[i - 1] * 2 >= a[i])
      ans++;
    else {
      temp = max(temp, ans);
      ans = 1;
    }
  }
  temp = max(temp, ans);
  printf("%d\n", temp);
  return 0;
}
