#include<bits/stdc++.h>
using namespace std;
int main(){
int x;
cin>>x;
for(int i=1;i<=x;i++){
for(int j=1;j<=i;j++){
cout<<i<<"*"<<j<<"="<<i*j<<" ";
}cout<<endl;
}
}
/**************************************************************
Problem: 1246
User: lidongbo
Language: C++
Result: Accepted
Time:8 ms
Memory:2072 kb
****************************************************************/