a =int(input())
if a <1:
a=1
if a >1000:
a=1000
for i in range(1, 100+1):
print(f"{a}*{i}={eval(a*i)}")
a =int(input())
if a <1:
a=1
if a >1000:
a=1000
for i in range(1, 100+1):
print(f"{a}*{i}={eval(a*i)}")