#include long b[200000]; int main(int argc, char const *argv[]) { long n,k,i,w=0,p=0,min; scanf("%ld %ld",&n,&k); for(i=0;i