#include using namespace std; int b[1005][1005]; int N,M; int main(){ cin>>N; cin>>M; for(int i=1; i<=N; ++i) for(int j=1; j<=M; ++j) cin>>b[j][i]; for(int i=1; i<=M; ++i) { for(int j=1; j<=N; ++j) cout<