#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  std::cin >> n;
  std::vector<int> v(n);
  for (int i = 0; i < n; i++) std::cin >> v[i];
  int c = 1, temp = 1;
  for (int i = 1; i < n; i++) {
    if (v[i] <= 2 * v[i - 1]) {
      temp += 1;
    } else {
      temp = 1;
    }
    c = max(c, temp);
  }
  std::cout << c << std::endl;
}
