#include using namespace std; int N,M; int W[1000]; main() { cin>>N>>M; long SW=0; for(int i=0;i>W[i]; SW+=W[i]; } for(int i=0;i