#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int answer = 1;
  int c = 1;
  int a, ap;
  cin >> ap;
  for (int i = 0; i < n - 1; ++i) {
    cin >> a;
    if (a / ap < 2 || (a / ap == 2 && a % ap == 0)) {
      c++;
      if (c > answer) answer = c;
    } else
      c = 1;
    ap = a;
  }
  cout << answer;
  return 0;
}
