num =int(input("enter any num:"))
n=int(input("enter any num:"))
i=1
while i<=num:
    j=1
    while j<=n:
        num2=i*j
        print(i,"x",j,"=",num2)
        j=j+1
    print()
    i=i+1





    
