#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int n, max = 0, count = 0;
  cin >> n;
  vector<long long int> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
  }
  for (int i = 0; i < n - 1; i++) {
    if (v[i + 1] <= 2 * v[i]) {
      count++;
      continue;
    } else {
      max = (max >= count) ? (max) : (count);
      count = 0;
    }
  }
  max = (max >= count) ? (max) : (count);
  cout << max + 1 << "\n";
  return 0;
}
