#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n, k, a;
  cin >> n >> k;
  vector<long long int> dp;
  for (int i = 0; i < n; i++) {
    cin >> a;
    dp.push_back(a);
  }
  for (int i = 1; i < n; i++) {
    dp[i] = (dp[i] + dp[i - 1]);
  }
  long long int minsum = INT_MAX, minidx, sum;
  for (int i = 0; i < n - k + 1; i++) {
    sum = 0;
    if (i == 0) {
      sum = dp[i + k - 1];
    } else {
      sum = dp[i + k - 1] - dp[i - 1];
    }
    if (sum < minsum) {
      minsum = sum;
      minidx = i;
    }
  }
  cout << minidx + 1;
  return 0;
}
