#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, s = 0;
  cin >> n >> k;
  int num[500005];
  int sum[500005];
  memset(sum, 0, sizeof(sum));
  memset(num, 0, sizeof(num));
  for (int i = 1; i <= n; i++) {
    cin >> num[i];
    s += num[i];
    if (i >= k) {
      sum[i] = s;
      s -= num[i - k + 1];
    }
  }
  int min = 99999999;
  int ni = 0;
  for (int i = k; i <= n; i++)
    if (sum[i] < min) {
      min = sum[i];
      ni = i - k + 1;
    }
  cout << ni << endl;
}
