#include<math.h> void main () { int a,j,i; scanf("%d",&a); for(i=a;i<=9;i--) { for(j=a;j>=1;i--) printf("%1d*%1d=%-4d",j,i,j*i); printf("\n"); } }