#include <bits/stdc++.h>   using namespace std;   int main() {     int n, x, y;     cin >> n;     x = 1;     y = n * n;     while (x < y) {       cout << x <<     << y << endl;       x++;       y--;     }     return 0;   }   