#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  vector<int> height;
  int e;
  for (int i = 0; i < n; i++) {
    cin >> e;
    height.push_back(e);
  }
  int sum = 0;
  for (int i = 0; i < k; i++) sum += height[i];
  int min = INT_MAX;
  int index = -1;
  for (int i = 0; i < n - k + 1; i++) {
    if (i > 0) {
      sum -= height[i - 1];
      sum += height[i + k - 1];
    }
    if (sum < min) {
      min = sum;
      index = i + 1;
    }
  }
  cout << index << endl;
  return 0;
}
