#include <bits/stdc++.h>
using namespace std;
long long int max(long long int a, long long int b) {
  if (a >= b)
    return a;
  else
    return b;
}
long long int min(long long int a, long long int b) {
  if (a >= b)
    return b;
  else
    return a;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  long long int a[n], b[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  b[0] = 1;
  for (int i = 1; i < n; i++) {
    if (a[i] <= 2 * a[i - 1])
      b[i] = b[i - 1] + 1;
    else
      b[i] = 1;
  }
  int M = 0;
  for (int i = 0; i < n; i++)
    if (b[i] > M) M = b[i];
  cout << M;
  return 0;
}
