#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int* arr = new int[n + 1];
  arr[0] = 0;
  int min = INT_MAX, minIndex = -1;
  for (int i = 1; i < n + 1; i++) {
    int a;
    cin >> a;
    arr[i] = arr[i - 1] + a;
    if (i >= k && arr[i] - arr[i - k] < min) {
      min = arr[i] - arr[i - k];
      minIndex = i - k + 1;
    }
  }
  cout << minIndex << endl;
  return 0;
}
