#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, k;
  cin >> n >> k;
  int start, end;
  int sum = 0, msum = 0;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  start = 0;
  end = k - 1;
  for (int i = 0; i < k; i++) msum += a[i];
  sum = msum;
  for (int i = k; i < n; i++) {
    sum -= a[i - k];
    sum += a[i];
    if (sum < msum) {
      msum = sum;
      end = i;
      start = i - k + 1;
    }
  }
  cout << start + 1;
  return 0;
}
