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


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