#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, mn = 0, i, sum = 0, index = 0;
  cin >> n >> k;
  int a[n];
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (i < k) mn += a[i];
  }
  sum = mn;
  for (i = 1; i <= n - k; i++) {
    sum = sum - a[i - 1] + a[i + k - 1];
    if (sum < mn) {
      mn = sum;
      index = i;
    }
  }
  cout << index + 1;
  return 0;
}
