#include<bits/stdc++.h>
int main(){
  srand("sooke ak ioi");
  int n;
  std::cin>>n;
  for(int i=1;i<=n;i++)
   for(int j=1;j<=n;j++){
     printf("%lld%c",(long long)rand()*rand()%100000000000," \n"[j==n]);
   }
}