#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n, x;
  cin >> n;
  int arr[n];
  for (int i = 0; i < n; i++) cin >> arr[i];
  int ans = 1, counter = 0;
  for (int i = 0; i + 1 < n; i++) {
    if (arr[i] * 2 < arr[i + 1]) {
      ans = max(ans, counter + 1), counter = 0;
      continue;
    }
    counter++;
  }
  ans = max(ans, counter + 1);
  cout << ans;
  return 0;
}
