#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, k;
  cin >> n >> k;
  long long arr[n];
  long long sum = 0;
  long long minn = 1000000000;
  long long ans = 0;
  for (long long i = 0; i < n; i++) {
    cin >> arr[i];
    if (arr[i] < minn) {
      minn = arr[i];
      ans = i;
    }
    if (i < k) {
      sum = sum + arr[i];
    }
  }
  long long p = sum;
  if (k == 1) {
    cout << ans + 1 << endl;
    return 0;
  }
  long long temp;
  long long index = 0;
  if (n == k) {
    cout << "1" << endl;
    return 0;
  }
  for (long long i = 0; i < n - k; i++) {
    temp = p - arr[i] + arr[i + k];
    if (sum > temp) {
      sum = temp;
      index = i + 1;
    }
    p = temp;
  }
  cout << index + 1 << endl;
}
