#include <bits/stdc++.h>
using namespace std;
template <typename T>
istream &operator>>(istream &is, vector<T> &arr);
template <typename T>
ostream &operator<<(ostream &os, vector<T> &arr);
template <typename T, typename U>
ostream &operator<<(ostream &os, pair<T, U> &p);
bool valid(int i, int j, int n, int m) {
  return i >= 0 && i < n && j >= 0 && j < m;
}
int INF = 1e9 + 7;
long long MOD = 1e9 + 7;
long long mul(long long a, long long b) { return (a % MOD * b % MOD) % MOD; }
long long add(long long a, long long b) { return (a % MOD + b % MOD) % MOD; }
int main() {
  (ios_base::sync_with_stdio(false), cin.tie(0));
  int n, k;
  cin >> n >> k;
  vector<int> a(n + 1);
  for (int i = int(1); i <= int(n); i++) {
    cin >> a[i];
    a[i] += a[i - 1];
  }
  int mn = INF;
  int pos = -1;
  for (int i = int(1); i <= int(n - k + 1); i++) {
    if ((a[i + k - 1] - a[i - 1]) < mn) {
      mn = a[i + k - 1] - a[i - 1];
      pos = i;
    }
  }
  cout << pos << endl;
}
template <typename T>
istream &operator>>(istream &is, vector<T> &arr) {
  typename vector<T>::iterator a;
  for (a = arr.begin(); a != arr.end(); a++) {
    is >> *a;
  }
  return is;
}
template <typename T>
ostream &operator<<(ostream &os, vector<T> &arr) {
  typename vector<T>::iterator a;
  for (a = arr.begin(); a != arr.end(); a++) {
    os << *a << " ";
  }
  os << endl;
  return os;
}
template <typename T, typename U>
ostream &operator<<(ostream &os, pair<T, U> &p) {
  os << p.first << " " << p.second << '\n';
  return os;
}
