#include<stdio.h> int main() { int n,i,j,m=1,b; scanf("%d",&n); for(i=0;i<n;++i) { for(j=0;j<n;++j) { if(j<=i) b=m; else b=0; if(j<=i) m=m+1; printf("%d",b); if(j!=n-1) printf(","); } printf("\n"); } }