#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, k;
  cin >> n >> k;
  vector<int> arr(n + 1, 0);
  vector<int> b(n + 1, 0);
  int val;
  for (int i = 1; i <= n; i++) cin >> arr[i];
  b[1] = arr[1];
  for (int i = 2; i <= n; i++) {
    b[i] = b[i - 1] + arr[i];
  }
  val = b[k];
  int index = 1, temp;
  for (int i = k + 1; i <= n; i++) {
    temp = b[i] - b[i - k];
    if (temp < val) {
      val = temp;
      index = i - k + 1;
    }
  }
  cout << index;
  return 0;
}
