#include using namespace std; int main() { int a[101][101], b[101][101], n; cin >> n; for (int i = 1; i <= n; ++i) for (int j = 1; j <= n; ++j) cin >> a[i][j]; for (int i = 1; i <= n; ++i) for (int j = 1; j <= n; ++j) b[i][j] = a[n + 1 - j][n + 1 - i]; for (int i = 1; i <= n; ++i) { for (int j = 1; j <= n; ++j) cout << b[i][j] << " "; cout << endl; } return 0; }