#include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long int LL; typedef pair P; typedef pair > PP; typedef pair LP; const int INF=1<<30; const LL MAX=1e9+7; void array_show(int *array,int array_n,char middle=' '){ for(int i=0;i > v1; LL s[100005]; int main(){ int n,m; LL a,b,c,d; int i,j,k; cin>>n>>m; for(i=0,b=0,c=0,d=0;i>a; if(a%2==1)b++,c+=a; else{ if(b>=m)s[d++]=c; b=0,c=0; } } if(b>=m)s[d++]=c; array_show(s,d,'\n'); }