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