#include using namespace std; int main(){ int h,w; cin >> h >> w; for(int i=0; i a(w); for(int i=0; i> a[i]; sort(a.begin(),a.end()); for(int i=0; i