#include int main(void){ int N,W,sn,sw,max=0; scanf("%d%d",&N,&W); for(int i=0;i