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