#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<long long int> v, sum(1000000);
  long long int min, ind, j = 0, x, n, k;
  cin >> n >> k;
  for (long long int i = 0; i < n; i++) {
    cin >> x;
    v.push_back(x);
  }
  for (long long int i = 0; i < k; i++) {
    sum[0] += v[i];
  }
  j = 1;
  for (long long int i = 0; i < n - k; i++) {
    sum[j] = sum[j - 1] - v[i] + v[k + i];
    j++;
  }
  j--;
  min = sum[0];
  ind = 0;
  for (long long int i = 0; i <= j; i++) {
    if (sum[i] < min) {
      min = sum[i];
      ind = i;
    }
  }
  cout << ind + 1;
}
