#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<int> a(n + 1, 0);
  for (int i = 1; i <= n; i++) {
    int x;
    cin >> x;
    a[i] = a[i - 1] + x;
  }
  int mini = INT_MAX, in = -1;
  for (int i = 1; i <= n - k + 1; i++) {
    if (a[i + k - 1] - a[i - 1] < mini) {
      in = i;
      mini = a[i + k - 1] - a[i - 1];
    }
  }
  cout << in << endl;
}
