#include <bits/stdc++.h>
using namespace std;
const int N = 150010;
const int INF = 0x3f3f3f3f;
const int MOD = 1e9 + 7;
int a[N], sum[N];
int main() {
  int n, k;
  cin >> n >> k;
  int ans = INF;
  int flag;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
    sum[i] = sum[i - 1] + a[i];
    if (i >= k && sum[i] - sum[i - k] < ans) {
      flag = i - k + 1;
      ans = sum[i] - sum[i - k];
    }
  }
  cout << flag << endl;
  return 0;
}
