number = int(input())
for i in range(1,11):
	print(str(i) + " x " + str(number) + " = " + str(number*i))

number = int(input())
for i in range(1,11):
	print(str(i) + " x " + str(number) + " = " + str(number*i))
