#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, c;
  cin >> n >> k;
  if (n == 1) {
    cout << 1;
    return 0;
  }
  long long int s[n + 1];
  s[0] = 0;
  for (int i = 1; i <= n; i++) {
    cin >> c;
    if (i > 1)
      s[i] = c + s[i - 1];
    else
      s[i] = c;
  }
  long int suma = INT_MAX, pos = 1;
  for (int i = 1; i <= (n - (k - 1)); i++) {
    if (s[i + (k - 1)] - s[i - 1] < suma) {
      pos = i;
      suma = s[i + (k - 1)] - s[i - 1];
    }
  }
  cout << pos;
}
