#define _GLIBCXX_DEBUG #include using namespace std; using ll = long long; using Graph = vector>; int main(){ int h,w; cin >> h >> w; vectortable(h); for(int i=0; i < h;i++) cin >> table[i]; for(int i=0; i < w; i++){ for(int j=0; j < h;j++){ cout << table[h-1-j][i]; } cout << "" << endl; } }