#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, k;
  cin >> n >> k;
  long long fence[n];
  long long aux;
  long long suma = 0, grande = 1e9 + 5;
  for (long long i = (0); i < (long long)(n); i++) cin >> fence[i];
  for (long long i = (0); i < (long long)(k); i++) suma += fence[i];
  for (long long i = (k); i < (long long)(n); i++) {
    grande = min(grande, suma);
    if (grande == suma) aux = i - k;
    suma -= fence[i - k];
    suma += fence[i];
  }
  grande = min(grande, suma);
  if (grande == suma) aux = n - k;
  cout << aux + 1 << endl;
  return 0;
}
