import java.io.*;
public class MultiplicationTable {
public static void main(String arg[])
{
try{
InputStreamReader isr=new InputStreamReader(System.in);
BufferedReader br=new BufferedReader(isr);
System.out.println("please enter a num:");
String numInput=br.readLine();
int num=Integer.parseInt(numInput);
MulTable multable1=new MulTable(num);
multable1.printMulTab();
}
catch(Exception e)
{
e.printStackTrace();
}
}
}
class MulTable
{
int numMulp;
public MulTable(int numMulp)
{
this.numMulp=numMulp;
}
public void printMulTab()
{
for(int i=1,j=1;i<=this.numMulp;i++)
{
for(j=1;j<=this.numMulp;j++)
System.out.print(i+" x"+j+" ="+i*j+" ");
System.out.println();
}
}
}