#include <bits/stdc++.h>
using namespace std;
long long int n, k;
long long int a[1000001];
long long int dp[1000001];
int main() {
  cin >> n >> k;
  for (long long int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  dp[n] = a[n];
  for (long long int i = n - 1; i >= 1; i--) {
    dp[i] = dp[i + 1] + a[i];
  }
  if (n == 1 || n == k) {
    cout << 1;
    return 0;
  }
  long long int temp = 100000000000;
  long long int ans;
  for (long long int i = 1; i <= n; i++) {
    long long int val = dp[i] - dp[i + k];
    if (temp > val) {
      ans = i;
      temp = val;
    }
    if (i + k > n) break;
  }
  cout << ans;
}
