#include <bits/stdc++.h>
using namespace std;
int n;
int a[200005], dp[200005];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    dp[i] = 0;
  }
  dp[1] = 1;
  int Max = 1;
  for (int i = 2; i <= n; i++) {
    if (a[i] <= 2 * a[i - 1])
      dp[i] = dp[i - 1] + 1;
    else
      dp[i] = 1;
    if (dp[i] > Max) Max = dp[i];
  }
  cout << Max;
  return 0;
}
