#include #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ int n,k; scanf("%d%d",&n,&k); vector a(n); rep(i,n) scanf("%d",&a[i]); vector S; int sum=0; rep(i,k-1) sum+=a[i]; for(int i=k-1;i