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