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