#include using namespace std; int main(){ int H, W; cin >> H >> W; vector A(H * W); for(int i=0; i> A[i]; sort(A.begin(), A.end()); for(int i=0; i