string = input("输入A和B:\n")
A, B = map(int, string.split())
num_range = {"start":0,"end":20}

if(1<= A <= 9 and 1<= B <= 9):
    product = A * B
    print('%d*%d=%-2d'%(A,B,product))
else:
    print("-1")