#include <bits/stdc++.h>
int const Mod = 1e9 + 7;
int const N = 1e5 + 5;
using namespace std;
int n, m, i, j, k, l, o, p;
int main() {
  ios ::sync_with_stdio(false);
  cin >> n >> k;
  vector<int> a(n + 5);
  for (i = 1; i <= n; i++) cin >> a[i], a[i] += a[i - 1];
  l = Mod;
  for (i = 0; i <= n - k; i++)
    if (a[i + k] - a[i] < l) {
      l = a[i + k] - a[i], j = i + 1;
    }
  cout << j;
}
