N = int(input()) str = "" for i in range(1,10) : str = str + "{} * {} = {}\n".format(N,i,N*i) print(str)