#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k;
  cin >> n >> k;
  int a[n + 1];
  int dp[n + 1];
  for (int i = 1; i <= n; i++) cin >> a[i];
  dp[1] = a[1];
  for (int i = 2; i <= n; i++) {
    dp[i] = dp[i - 1] + a[i];
  }
  int ans = 1;
  int res = INT_MAX;
  dp[0] = 0;
  for (int i = k; i <= n; i++) {
    int sum = dp[i] - dp[i - k];
    if (sum < res) {
      res = sum;
      ans = i - k + 1;
    }
  }
  cout << ans;
}
