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