#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long test;
  test = 1;
  while (test--) {
    int n, k;
    cin >> n >> k;
    int arr[n];
    for (int i = 0; i < n; i++) {
      cin >> arr[i];
    }
    int prefix[n];
    prefix[0] = arr[0];
    for (int i = 1; i < n; i++) {
      prefix[i] = prefix[i - 1] + arr[i];
    }
    int mx = INT_MAX;
    int index = 0;
    for (int i = 0; (i + k - 1) < n; i++) {
      if (mx > (prefix[i + k - 1] - prefix[i] + arr[i])) {
        mx = prefix[i + k - 1] - prefix[i] + arr[i];
        index = i;
      }
    }
    cout << index + 1 << endl;
  }
  return 0;
}
