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