def m():
     num = input().split()
     l = []
     for i in num:
             l.append(int(i))
     if l[0] >= 10 or  l[1] >= 10:
             print("-1")
     else:
             a = l[0] * l[1]
             print(a)