#include <bits/stdc++.h>
using namespace std;
int main() {
	int n;
	cin>>n;
	for(int i=1;i<=n;i++){
			for(int j=n*i;j>=n*i-n+1;j--)
				cout<<setw(3)<<j;
		cout<<"\n";
	}
 return 0;
}
#include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }
 #include <bits/stdc++.h>
 using namespace std;
 int main() {
     int n;
     cin>>n;
     for(int i=1;i<=n;i++){
             for(int j=n*i;j>=n*i-n+1;j--)
                 cout<<setw(3)<<j;
         cout<<"\n";
     }
  return 0;
 }