#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int n, k;
  cin >> n >> k;
  long long int a[n + 2];
  a[0] = 0;
  pair<long long int, long long int> min;
  min.first = INT_MAX;
  for (long long int i = 1; i <= n; i++) {
    cin >> a[i];
    a[i] += a[i - 1];
    if (i >= k) {
      a[i] -= a[i - k];
      if (a[i] < min.first) min.first = a[i], min.second = i - k + 1;
      a[i] += a[i - k];
    }
  }
  cout << min.second;
  return 0;
}
