#include <iostream>
using namespace std;
int main(void)
{
int n;
cin >> n;
for(int i = 1; i < 10; i++)
cout << n << " * " << i << " = " << n * i << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKHZvaWQpCnsKICAgIGludCBuOwogICAgY2luID4+IG47CiAgICAKICAgIGZvcihpbnQgaSA9IDE7IGkgPCAxMDsgaSsrKQogICAgICAgIGNvdXQgPDwgbiA8PCAiICogIiA8PCBpIDw8ICIgPSAiIDw8IG4gKiBpIDw8IGVuZGw7CiAgICAKICAgIHJldHVybiAwOwp9