#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, arr[200005], i, j, k, mini, store;
  cin >> n >> k;
  arr[0] = 0;
  for (i = 1; i <= n; i++) cin >> arr[i];
  for (i = 1; i <= n; i++) arr[i] += arr[i - 1];
  for (i = 0, j = k, mini = 1e15, store = 0; j <= n; i++, j++) {
    if (mini > arr[j] - arr[i]) {
      mini = arr[j] - arr[i];
      store = i;
    }
  }
  cout << store + 1 << endl;
  return 0;
}
