Problem:
 Score : 100 points    Problem Statement Having learned the multiplication table, Takahashi can multiply two integers between 1 and 9 (inclusive) together. He cannot do any other calculation.  Given are two integers A and B .  If Takahashi can calculate A \times B , print the result; if he cannot, print -1 instead.      Constraints  1 \leq A \leq 20  1 \leq B \leq 20  All values in input are integers.         Input Input is given from Standard Input in the following format:  A  B       Output If Takahashi can calculate A \times B , print the result; if he cannot, print -1 .        Sample Input 1 2 5      Sample Output 1 10  2 \times 5 = 10 .       Sample Input 2 5 10      Sample Output 2 -1  5\times 10 = 50 , but Takahashi cannot do this calculation, so print -1 instead.       Sample Input 3 9 9      Sample Output 3 81

Solution (Python):
def solve():
    A, B = map(int, input().split())

    if A < 10 and B < 10:
        print(A * B)
    else:
        print(-1)

if __name__ == '__main__':
    solve()

Solution (Python):
str = input()
data = str.split()
n1 = int(data[0])
n2 = int(data[1])
if (n1 >9 or n2 > 9):
    print(-1)
else:
    print(n1*n2)

Solution (Python):

A, B = list(map(int,input().split()))
if 1 <= A <= 9 and 1 <= B <= 9:
    print(A*B)
else:
    print(-1)

Solution (Python):
a,b = map(int,input().split())
if a>9 or b>9:
  print(-1)
else:
  print(a*b)

Solution (Python):
a,b =  list(map(int, input().split()))
if a/10<1 and b/10<1:
    print(a*b)
else:
    print(-1)

Solution (Python):
A,B = list(map(int,input().split()))

if max(A,B)<=9:
  print(A*B)
else:
  print(-1)

Solution (Python):
A,B = (int(i) for i in input().split())

if A <= 9 and B <=9:
  print(A*B)
else:
  print(-1)

Solution (Python):
a,b=map(int,input().split())
if a>9 or b>9:
  print(-1)
else:
  print(a*b)

Solution (Python):
a, b = map(int,input().split(" "))
if a>9:
    print("-1")
elif b>9:
    print("-1")
else:
    print(a*b)

Solution (Python):
A,B = map(int,input().split())
 
if(A<=9 and B<=9):
  print(A*B)
else:
  print("-1")

Solution (Python):
A,B = map(int,input().split())
if 0 < A < 10 and 0 < B < 10:
    print(A * B)
else:
    print(-1)

Solution (Python):
a, b = map(int,input().split())

if max(a,b) <= 9:
  print(a * b)
else:
  print(-1)

Solution (Python):


'''
------------------------
author : iiou16
time : 11/01/12:09
------------------------
'''


def main():
    A, B = list(map(int, input().split()))
    if A < 10 and B < 10:
        print(A * B)
    else:
        print("-1")


if __name__ == '__main__':
    main()

Solution (Python):
a, b = map(int, input().split())
if a < 10 and b < 10:
  print(a * b)
else:
  print(-1)

Solution (Python):
a, b = map(int, input().split())

if a <= 0 or b <= 0:
    print(-1)
elif a >= 10 or b >= 10:
    print(-1)
else:
    print(a * b)

Solution (Python):
a,b = map(int,input().split())
if 1 <= a <= 9 and 1 <= b <= 9:
  print(a * b)
else:
  print(-1)

Solution (Python):
a,b = list(map(int, input().strip().split()))
if a <= 9 and b <= 9:
	print(a*b)
else:
	print(-1)

Solution (Python):
num = list(map(int,input().split()))

result = -1
if num[0] >= 1 and num[0] <= 9 and num[1] >= 1 and num[1] <= 9:
	result = num[0] * num[1]

print(result)

Solution (Python):
a,b=map(int,input().split())
if a>9:
    print(-1)
elif b>9:
    print(-1)
else:
    print(a*b)

Solution (Python):
a, b = map(int, input().split())
if a<10 and b<10:
    print(a*b)
else:
    print(-1)

Solution (Python):
a, b = map(int, input().split())
if a < 10 and b < 10:
  print(a*b)
else:
  print(-1)

Solution (Python):


 

a, b = map(int,input().split())
 

if a > 9 or b > 9:
    ans = -1
else:
    ans = a * b
 

print(ans)

Solution (Python):
def main():    
    a, b = map(int, input().split())
    ans = -1

    if (a < 10) and (b < 10):
        ans = a * b

    print(ans) 

if __name__ == '__main__':
    main()

Solution (Python):
input = [int(i) for i in input().split()]
for i in input:
  if i > 9 or i < 1:
    print(-1)
    quit()
print(input[0] * input[1])

Solution (Python):
n = [int(i) for i in input().split(" ")]
if max(n) < 10:
  print(n[0] * n[1])
else:
  print(-1)

Solution (Python):


def solve():
    A, B = list(map(int, input().split()))

    if 1 <= A <= 9 and 1 <= B <= 9:
        print(A*B)
    else:
        print(-1)

if __name__ == "__main__":
    solve()

Solution (Python):
A,B=map(int,input().split())
if A<=9 and A>=1 and B<=9 and B>=1:
  print(A*B)
else:
  print(-1)

Solution (Python):
a,b=map(int,input().split())
if 1<=a<=9 and 1<=b<=9:
    print(a*b)
else:
    print(-1)

Solution (Python):
str = input()
A_str , B_str = str.split()

A = int(A_str)
B = int(B_str)

if A < 10 and B < 10 :
    print(A * B)
else :
    print (-1)

Solution (Python):
a, b = map(int, input().split())
if 0<a<=9 and 0<b<=9:
  print(a*b)
else:
  print(-1)

Solution (Python):
import sys
sys.setrecursionlimit(10**9)
def input():
    return sys.stdin.readline().rstrip()

def main():
    A,B=map(int,input().split())
    if A<10 and B<10:
        print(A*B)
    else:
        print(-1)


if __name__ == '__main__':
    main()

Solution (Python):
import sys
sys.setrecursionlimit(10**9)
def input():
    return sys.stdin.readline().rstrip()

def main():
    a,b = map(int, input().split(' '))
    print(a*b if a < 10 and b < 10 else -1)
    pass

if __name__ == '__main__':
    main()

Solution (Python):
a,b = map(int,input().split())
if 1 <= a <= 9 and 1 <= b <= 9:
  print(a*b)
else:
  print(-1)

Solution (Python):
A,B = map(int,input().split())

print(A*B if A < 10 and B < 10 else -1)

Solution (Python):
a, b = list(map(int, input().split()))
if a > 9 or b > 9:
  print('-1')
else:
  print(a * b)

Solution (Python):
a , b = map(int, input().split())



if a >= 10 or b >= 10:
	c = -1
	print(c)
	
else:
	c = a * b
	print(c)

Solution (Python):
a,b=map(int,input().split())
print(a*b if a<10 and b< 10 else -1)

Solution (Python):

a,b = map(int,input().split())
if 0 < a < 10 and 0 < b < 10:
  print(a*b)
else:
  print(-1)

Solution (Python):
A, B = map(int, input().split())
if A <= 9 and B <= 9:
    print(A*B)
else:
    print(-1)

Solution (Python):
A, B = map(int,input().split())
if A > 9 or B > 9:
    print(-1)
else:
    print(A*B)

Solution (Python):
A,B = map(int,input().split())
if 1 <= A and A <=9 and 1 <= B and B <=9 :
    print(A*B)
else:
    print(-1)

Solution (Python):
a,b = map(int,input().split())
if max(a,b) <= 9:
    print(a*b)
else:
    print(-1)

Solution (Python):
A,B=map(int,input().split())
if A<10 and B<10:
    print(A*B)
else:
    print(-1)

Solution (Python):
A,B=map(int,input().split())
if A<10 and B<10:
    print(A*B)
else:
    print(-1)

Solution (Python):
A,B=map(int,input().split())
if A<10 and B<10:
    print(A*B)
else:
    print(-1)

Solution (Python):
a,b = map(int,input().split())

if a > 9 or b > 9:
  print(-1)
else:
  print(a*b)

Solution (Python):
i = list(map(int, input().split()))
if i[0] >9 or i[0] < 1:
	print("-1")
elif i[1] >9 or i[1] < 1:
	print("-1")
else:
	print(i[0]*i[1])

Solution (Python):
A,B=map(int,input().split())
if A<10 and B<10:
    print(A*B)
else:
    print(-1)

Solution (Python):
ab = input().split(" ")
a = int(ab[0])
b = int(ab[1])


def check(a,b):
	if (a>9 or b>9):
		return -1
	else:
		return a*b
ans = check(a,b)
print(ans)

Solution (Python):
a,b=map(int,input().split())
if a>9 or a<1 or b>9 or b<1:
    print(-1)
else:
    print(a*b)

Solution (Python):
A, B = [int(x) for x in input().split()]
if A > 9 or B > 9:
  ans = -1
else:
  ans = A * B

print(ans)

Solution (Python):
A,B = map(int,input().split())

if max(A,B) > 9:
  print(-1)
else:
  print(A*B)

Solution (Python):
data = list(map(int,input().split()))

if  data[0]<= 9 and data[1] <= 9:
    print(data[0]*data[1])
else:
    print("-1")

Solution (Python):
a,b=map(int,input().split())
if a<=9 and b<=9:
  print(a*b)
else:
  print(-1)

Solution (Python):
a, b = map(int, input().split())
print(a * b if a <= 9 and b <= 9 else -1)

Solution (Python):
a,b = map(int,input().split())

if a >= 10 or b >= 10:
    print(-1)
else:
    print(a*b)

Solution (Python):
def solve(string):
    a, b = map(int, string.split())
    return str(a * b if 1 <= a <= 9 and 1 <= b <= 9 else -1)


if __name__ == '__main__':
    print(solve(input()))

Solution (Python):
def kakezan():
    if (1 <= a <= 9) and (1 <= b <= 9):
        return a * b
    else:
        return -1

a, b = map(int, input().split())

print(kakezan())

Solution (Python):
a, b = map(int, input().split())
if a <= 0 or a >= 10:
    print("-1")
elif b <= 0 or b >= 10:
    print("-1")
else:
    print("{}".format(a*b))

Solution (Python):
A, B = map(int, input().split())

if A < 10 and B < 10:
    print(A * B)
else:
    print(-1)

Solution (Python):
a, b = map(int, input().split())
if 1 > a or a > 20:
    raise ValueError("invalid number")
    
if 1 > b or b > 20:
    raise ValueError("invalid number")

if a <= 0 or a >= 10:
    print("-1")
elif b <= 0 or b >= 10:
    print("-1")
else:
    print("{}".format(a*b))

Solution (Python):
a, b = list(map(int, input().split()))
if a // 10 + b // 10 == 0:
  print(a*b)
else:
  print("-1")

Solution (Python):
a,b=map(int,input().split())
print(-1 if a>9 or b>9 else a*b)

Solution (Python):
a,b=map(int,input().split())

if a>9 or b>9:
    print(-1)
else:
    print(a*b)

Solution (Python):
A = [int(x) for x in input().split()]
a=A[0]
b=A[1]
if a>9 or b>9:
    print(-1)
else:
    print(a*b)

Solution (Python):
a,b=map(int,input().split())
if (a >= 10) or (b >=10):
  print(-1)
else:
  print(a*b)

Solution (Python):
A,B = map(int,input().split())
if 1 <= A <= 9 and 1 <= B <= 9:
	print(A*B)
else:
	print(-1)

Solution (Python):
a,b = map(int,input().split())
if a <= 9 and b <= 9:
    print(a*b)
else:
    print("-1")

Solution (Python):
a,b = map(int,input().split())

if (1 <= a <= 9 and 1 <= b <= 9):
    print(a * b)
else:
    print("-1")

Solution (Python):
a,b=map(int,input().split())
if a > 9 or b > 9:
  print(-1)
else:
  print(a*b)

Solution (Python):
a, b = map(int, input().split())

if 1 <= a and a <= 9 and 1 <= b and b <= 9:
  print(a * b)
else:
  print(-1)

Solution (Python):
a, b = map(int, input().split())
if (a <= 9) and (b <= 9):
    print(a*b)
else:
    print(-1)

Solution (Python):
import math

A,B=map(int, input().split())  

if A>0 and A<10 and B>0 and B<10:
    print(A*B)
else:
    print(-1)

Solution (Python):
a, b = map(int, input().split())
print(a*b if (0<a<10) & (0<b<10) else -1)

Solution (Python):
a, b = map(int, input().split())
print(a*b if (0<a<10) & (0<b<10) else -1)

Solution (Python):
a,b = map(int, input().split())

if a < 10 and b <10:
    print(a * b)
else:
    print("-1")

Solution (Python):
a, b = map(int, input().split())

if (a < 1 or a > 9) or (b < 1 or b > 9):
  print(-1)
else:
  print(a*b)

Solution (Python):
def main():
    a,b = [int(i) for i in input().split()]
    if 0 < a < 10 and 0 < b < 10:
        ans = a * b
        print(str(ans))
    else:
        print("-1")
        return -1


if __name__ == "__main__":
    main()

Solution (Python):
n = [int(e) for e in input().split(" ")]
print(n[0] * n[1] if (0 < n[0] < 10 and 0 < n[1] < 10) else -1)

Solution (Python):
A, B = map(int, input().split())

if(9>=A>=1 and 9>=B>=1):
  sum = A*B
  print(sum)
else:
  print(-1)

Solution (Python):
a,b=map(int,input().split())
if a>9 or b>9:
    print(-1)
else:
    print(a*b)

Solution (Python):
s = [int(a) for a in input().split(" ")]
print(s[0] * s[1] if s[0] < 10 and s[1] < 10 else -1)

Solution (Python):
import sys


line = input()
s = line.split(" ")
a = int(s[0])
b = int(s[1])

if(a < 10 and b < 10):
    print(a * b)
else:
    print(-1)

Solution (Python):
a,b=map(int,input().split())
if a>9 or b>9:
    print(-1)
else:
    print(a*b)

Solution (Python):
a,b=map(int,input().split())
if a<10 and b<10:
    print(a*b)
else:
    print(-1)

Solution (Python):
A,B = map(int,input().split())

if A < 10 and B < 10:
  print(A*B)
else:
  print(-1)

Solution (Python):
string = input()
 
v = string.split(" ")
 
if not len(v) == 2:
  print(-1)
 
a = int(v[0])
b = int(v[1])
 
if 0 < a < 10 and 0 < b < 10:
   print(a * b)
else: 
    print(-1)

Solution (Python):
a,b = list(map(int, input().split()))
if a >9 or b >9:
    print(-1)
else:
    print(a*b)

Solution (Python):
a, b = [int(i) for i in input().split()]

def calc(x, y):
    if x < 0:
        return -1
    if x > 9:
        return -1
    if y < 0:
        return -1
    if y > 9:
        return -1
    return x * y

print(calc(a, b))

Solution (Python):
import sys
sys.setrecursionlimit(10**7)
INTMAX = 9223372036854775807
INTMIN = -9223372036854775808
MOD = 1000000007
def POW(x, y): return pow(x, y, MOD)
def INV(x, m=MOD): return pow(x, m - 2, m)
def DIV(x, y, m=MOD): return (x * INV(y, m)) % m
def LI(): return [int(x) for x in input().split()]
def LF(): return [float(x) for x in input().split()]
def LS(): return input().split()
def II(): return int(input())


a,b=LI()

if a >= 1 and b >= 1 and a <= 9 and b <= 9:
    print(a*b)
else:
    print(-1)

Solution (Python):
a,b = map(int, input().split())
if a < 10 and b < 10:
	print(a*b)
else:
	print(-1)

Solution (Python):
import sys
 
input = sys.stdin.readline().split()
result = 1
for n in input:
  n=int(n)
  if result==-1:
    break
  if n<10:
    result = result * n
  else:
    result=-1
print(result)

Solution (Python):
data=input().split()
sum=0

for i  in data:
  if int(i)>=10:
    sum+=1
if sum==0:
  print(int(data[0])*int(data[1]))
else:
  print("-1")

Solution (Python):
a, b = map(int, input().split())

if a >= 10 or b >= 10:
    print(-1)
else:
    print(a * b)

Solution (Python):
A, B = map(int,input().split())

answer = -1

if 1 <= A and 9 >= A and 1 <= B and 9 >= B:
  answer = A * B

print(answer)

Solution (Python):
import sys
input = sys.stdin.readline


n,m=(int(x) for x in input().split())
l=[_ for _ in range(1,10)]
if n not in l or m not in l:
    print(-1)
else :
    print(n*m)

Solution (Python):
a, b = map(int, input().split())
print(a*b) if a <= 9 and b <= 9 else print(-1)

Solution (Python):
A, B = map(int, input().split())

if (A < 10) and (B < 10):
  print(A * B)
else:
  print("-1")

Solution (Python):
a, b=map(int, input().split())

if a>=1 and 9>=a and b>=1 and 9>=b:
  print(a * b)
else:
  print(-1)

Solution (Python):
A, B = map(int, input().split())
print(A * B if 1 <= A <= 9 and 1 <= B <= 9 else -1)

Solution (Python):
a,b = map(int,input().split())

def myfunc(a,b):
    if (a>9 or b>9):
        print(-1)
    else:
        print(a*b)

myfunc(a,b)

Solution (Python):
a,b = map(int,input().split())

if  a >= 1 and a <= 9 and b >= 1 and b <= 9  :
   print(a*b)
else:
     print(-1)

Solution (Python):
a,b=map(int,input().split())

if 0<a and a<10 and 0<b and b<10:
 a=a*b
 print(a)
else:
 print(-1)

Solution (Python):
a, b=map(int, input().split())

if 9>=a and a>=1 and 9>=b and b>=1:
  print(a*b)
else:
  print(-1)

Solution (Python):
A , B = map(int, input().split())

if 1 <= A and A <= 9 and 1 <= B and B <= 9:
  print(A * B)
else:
  print(-1)

Solution (Python):
a, b = map(int,input().split())
X = a*b

if (a>=1 and a<=9) and (b>=1 and b<=9):
  print(X)
else:
    print('-1')

Solution (Python):
A , B = map(int, input().split())

if 1 <= A and A <= 9 and 1 <= B and B <= 9:
  print(A * B)
else:
  print(-1)

Solution (Python):
A , B = map(int, input().split())

if 1 <= A and A <= 9 and 1 <= B and B <= 9:
  print(A * B)
else:
  print(-1)

Solution (Python):
A, B = map(int, input().split())

if (A>=1 and A<=9) and (B>=1 and B<=9):
  x = A * B

else:
  x = -1

print(x)

Solution (Python):
a,b=map(int,input().split())
if 0<a<10 and 0<b<10:
  c=a*b
  print(c)
else:
    print(-1)

Solution (Python):
a,b = map(int,input().split())

if 1<=a<=9 and 1<=b<=9:
  print(a*b)
else:
  print(-1)

Solution (Python):
A, B = map(int, input().split())

if (A>=1 and A<=9) and (B>=1 and B<=9):
  x = A * B

else:
  x = -1

print(x)

Solution (Python):
a,b=input().split()
x=-1
a2=int(a)
b2=int(b)
if (0<a2<10) and (0<b2<10):
  print(a2*b2)
else:
  print(x)

Solution (Python):


a, b = map(int, input().split())


good = True

if a>=10 or b>=10:
  good = False

if good:
  print(a * b)
else:
  print(-1)

Solution (Python):
num_0,num_1 = map(int,input().split())

if num_0<10 and num_1<10:
    print(num_0*num_1)
else:
    print(-1)

Solution (Python):
a,b=map(int,input().split())
if a<=9 and b<=9:
    print(a*b)
else:
    print(-1)

Solution (Python):
A, B = map(int, input().split())
if A <= 9: 
    if B <= 9: 
        print(A * B)
    else:
        print(-1)
else:
    print(-1)

Solution (Python):

test = list(input().split())
for i in range(len(test)):
    test[i] = int(test[i])

if test[0] >= 10 or test[1] >= 10:
    print(-1)

elif test[0] < 1 or test[1] < 1:
    print(-1)

else:
    print(test[1] * test[0])

Solution (Python):
a, b = map(int, input().split())

if 10 <= a or 10 <= b:
    print(-1)
else:
    print(a*b)

Solution (Python):
A, B = [int(x) for x in input().split()]

print(A * B if 1 <= A <= 9 and 1 <= B <= 9 else "-1")

Solution (Python):
A,B=map(int,input().split())
if 1<= A <= 9 and 1<= B <= 9:
    print(A*B)
else:
    print("-1")

Solution (Python):
a,b  = map(int, input().split())
if a < 10 and b < 10:
  print(a*b)
else:
  print(-1)

Solution (Python):
a, b = map(int, input().split())
if a <= 9 and b <= 9:
    print(a*b)
else:
    print(-1)

Solution (Python):
a,b=map(int,input().split())
if 1<=a and a<=9 and 1<=b and b<=9:
  print(a*b)
else:
  print(-1)

Solution (Python):
A,B=map(int,input().split())
a=0
if A<10:
    if B<10:
        a=A*B
    else:
        a=-1
else:
    a=-1
    
print(a)

Solution (Python):
a,b = map(int, input().split())
if a < 10 and b < 10:
  print(a * b)
else:
  print("-1")

Solution (Python):
a,b = map(int,input().split())
if a <= 9 and b <= 9:
    print(a*b)
else:
    print(-1)

Solution (Python):
a,b = map(int,input().split())

if a>9:
    print(-1)
    exit()
    
elif b>9:
    print(-1)
    exit()

print(a*b)

Solution (Python):
a,b = map(int, input().split())
if a > 9 or b > 9:
  print(-1)
else:
  print(a * b)

Solution (Python):
a,b = [int(x) for x in input().split()]
if a >= 1 and a <=9 and b >=1 and b <=9:
  print(a*b)
else: 
  print(-1)

Solution (Python):
A, B = map(int, input().split())
C = A*B
if 0<A<10:
    if 0<B<10:
        C = A*B
    else:
        C = -1
else:
    C = -1
print(C)

Solution (Python):
inp = input().split()

A = int(inp[0])
B = int(inp[1])

C=A*B
if A <= 9 and B <= 9:
	print(C)
else:
	print(-1)

Solution (Python):
def main(a, b):
    if a>9:
        return -1
    if b>9:
        return -1
        
    return a*b

inp = input().split();
a = int(inp[0])
b = int(inp[1])
print(main(a,b))

Solution (Python):
a,b=[int(i) for i in input().split()]
if((a>=1 and a<=9 and b>=1 and b<=9)):
    print(a*b)
else:
    print(-1)

Solution (Python):
a,b=map(int,input().split())
if a<10 and b<10:
  print(a*b)
else:
  print(-1)

Solution (Python):
s = list(map(int, input().split()))

if (s[0] >=10 or s[1]>=10):
	print(-1)
else:
	print(s[0]*s[1])

Solution (Python):
A, B = map(int, input().split())
if 1 <= A <= 9 and 1 <= B <= 9:
  print(A * B)
else:
  print(-1)

Solution (Python):
a,b = map(int,input().split())
if 1 <= a <= 9 and 1 <= b <= 9:
  print(a*b)
else:
  print(-1)

Solution (Python):
A,B=map(int,input().split())
if A<=9 and B<=9:
  print(A*B)
else:
  print(-1)

Solution (Python):
A, B = map(int, input().split())
if A <= 9 and B <= 9:
    print(A * B)
else:
    print(-1)

Solution (Python):
a,_,b,*c=input();print(-(c>[])or int(a)*int(b))

Solution (Python):

a, b = map(int, input().split())

def check(test):
    if((test <= 0) or (10 <= test)):
        print(-1)
        exit(0)
    else:
        return test


a = check(a)
b = check(b)

print(a*b)

Solution (Python):
a, b = map(int, input().split())
if (1 <= a <= 9) & (1 <= b <= 9):
    print(a * b)
else:
    print(-1)

Solution (Python):
a, b = map(int, input().split())

if (a > 0 and a <= 9) and (b > 0 and b <=9):
	print(a*b)
else:
	print("-1")

Solution (Python):


a, b = map(int, input().split())

ans = -1
if(a<10 and b<10):
    ans = a*b
print(ans)

Solution (Python):
A,B = map(int,input().split())
if A > 9 or B > 9:
    print(-1)
else:
    print(A*B)

Solution (Python):
A,B = map(int, input().split())
if(A>9 or B>9):
    print(-1)
else:
    print(A*B)

Solution (Python):
a,b=map(int,input().split())
if a>9 or b>9:
    ans=-1
else:
    ans=a*b

print(ans)

Solution (Python):
from sys import stdin
A, B = [int(_) for _ in stdin.readline().rstrip().split()]
if A > 9 or B > 9:
    print(-1)
else:
    print(A*B)

Solution (Python):
A, B = map(int, input().split())

if A > 9 or B > 9: print(-1)
else: print(A * B)

Solution (Python):
a,b = map(int,input().split())
if 1 <= a <= 9 and 1 <= b <= 9:
    print(a*b)
else:
    print(-1)

Solution (Python):
A, B = map(int,input().split())
if A>9 or B>9:
  print(-1)
else:
  print(A*B)

Solution (Python):
a, b = map(int, input().split())
if(1 <= a <= 9 and 1 <= b <= 9):
  print(a * b)
else:
  print(-1)

Solution (Python):
n,k=map(int,input().split())
s1=str(n)
s2=str(k)
if(len(s1)==1 and len(s2)==1):
  print(n*k)
else:
  print(-1)

Solution (Python):
a, b = map(int, input().split())
if a <= 9 and b <= 9:
    print(a*b)
else:
    print(-1)

Solution (Python):
inputs = input().split()
a = int(inputs[0])
b = int(inputs[1])

if a < 10 and b < 10:
  print(a * b)
else:
  print('-1')

Solution (Python):
n, m = map(int, input().split())
print( n * m if n < 10 and m < 10 else -1)

Solution (Python):
A, B = map(int, input().split())
if A < 10 and B < 10:
    print(A * B)
else:
    print(-1)

Solution (Python):
a,b=map(int, input().split())

if a<10 and b<10:
    print(a*b)
else:
    print(-1)

Solution (Python):
a, b = (int(i) for i in input().split())
if a >= 10 or b >= 10:
  print("-1")
else:
  print(a*b)

Solution (Python):
a,b = map(int,input().split())
if 1<=a<=9 and 1<=b<=9:
  print(a*b)
else:print(-1)

Solution (Python):
A , B = map ( int , input ( )  . split( ) )
 
if ( A<= 9 and B <= 9) :
    print ( A * B )
else:
    print ( -1 )

Solution (Python):
a,b=map(int,input().split())

if(a<=9 and b<=9):
  print(a*b)
else:
  print(-1)

Solution (Python):
A, B = map(int, input().split())
print(-1 if max(A,B)>=10 else A*B)

Solution (Python):
a, b = map(int, input().split())
print(a * b if a < 10 and b < 10 else -1)

Solution (Python):
a,b = map(int,input().split())

if 1 <= a <= 9 and 1 <= b <= 9:
    print(a*b)
else:
    print(-1)

Solution (Python):
a,b=map(int,input().split())

if a>9 or b>9:
  print("-1")
else:
  print(a*b)

Solution (Python):
a, b = map(int,input().split())
if 1 <= a < 10 and 1 <= b < 10:
  print("{}".format(a*b))
else:
  print(-1)

Solution (Python):
a,b=map(int, input().split())
if a<10 and b<10:
    print(a*b)
else:
    print(-1)

Solution (Python):
a,b=map(int,input().split(" "))
if (1<=a & a<=9) & (1<=b & b<=9):
  print(a*b)
else:
  print(-1)

Solution (Python):
a, b = map(int, input().split())

print(a*b if (a < 10 and b < 10) else -1)

Solution (Python):
a,b = map(int,input().split())

if (a > 0 and a <10) and (b > 0 and b <10):
    print(a*b)
else:
    print(-1)

Solution (Python):
x,y = map(int,input().split())
if x>=10 or y>=10 or x<=0 or y<=0:
  print(-1)
else:
  print(x*y)

Solution (Python):
n,m=map(int,input().split())
if n>9 or m>9:
    print(-1)
else:
    print(n*m)

Solution (Python):
A, B = map(int, input().split())
if 0<=A<10 and 0<=B<10:
    print(A*B)
else:
    print(-1)

Solution (Python):
a,b=tuple(map(int,input().split()))
if a<=9 and b<=9:
  print(a*b)
else:
  print(-1)

Solution (Python):
a, b = map(int, input().split())
if a < 10 and b < 10:
    print(a * b)
else:
    print(-1)

Solution (Python):
A, B = map(int, input().split())
if A < 10 and B < 10 :
    print(A*B)
else:
    print(-1)

Solution (Python):
a,b = map(int,input().split(" "))
if a > 9 or b > 9:
    print(-1)
else:
    print(a*b)

Solution (Python):


a,b=map(int,input().split())
print(a*b if a<10 and b<10 else -1)

Solution (Python):
A,B = map(int,input().split())
if A < 10 and B < 10:
	print(A*B)
else:
	print(-1)

Solution (Python):
A, B = map(int, input().split())
if A<10 and B<10:
  print(A*B)
else:
  print('-1')

Solution (Python):
AB = input().split()
A = int(AB[0])
B = int(AB[1])

if 1 <= A <= 9 and 1 <= B <= 9 :
    print(A * B)

else :
    print(-1)

Solution (Python):
A,B = map(int,raw_input().split())
if 1<=A and A<=9:
  if 1<=B and B<=9:
    print A*B
  else:
    print "-1"
else:
  print "-1"

Solution (Python):
s = input().split()

a = int(s[0])
b = int(s[1])

if 0 <= a <= 9 and 0 < b <= 9 :
  print(a * b)
else:
  print(-1)

Solution (Python):
N,M = map(int,input().split())
ans = N * M
if N >= 10 or M >= 10:
  ans = -1
print(ans)

Solution (Python):
a,b = map(int,input().split())
if a < 10 and b < 10:
    print(a*b)
else:
    print(-1)

Solution (Python):
a,b=input().split()
a=int(a)
b=int(b)
if ((a>9) | (b>9)):
  print(-1)
else:
	print(a*b)

Solution (Python):
a,b=map(int,input().split())
if a>9 or b>9:print(-1)
else:print(a*b)

Solution (Python):
A, B = list(map(int, input().split()))
print(A * B if 1 <= A <= 9 and 1 <= B <= 9 else -1)

Solution (Python):
a,b=map(int,input().split())
if a > 9 or b > 9:
  print(-1)
else:
  print(a*b)

Solution (Python):
a,b = map(int , input().split())

if a > 9 or b>9:
    print("-1")
else:
    print(a*b)

Solution (Python):
import fileinput
import re

for line in fileinput.input():
    A = int(re.search("^[0-9]+", line).group())
    B = int(re.search("[0-9]+$", line).group())
    if(A < 10 and A >=1 and B < 10 and B >= 1):
        print(A*B)
    else:
        print(-1)
    exit()

Solution (Python):
x, y = map(int, input().split(" "))

if 0 <= x <= 9 and 0 <= y <= 9:
  print(x*y)
else:
  print('-1')

Solution (Python):
a,b = map(int, input().split())
num = [1,2,3,4,5,6,7,8,9]
if a in num and b in num:
    print(a * b)
else:
    print("-1")

Solution (Python):
n,m=map(str,input().split())
if(len(n)<=1 and len(m)<=1):
	print(int(n)*int(m))
else:
	print(-1)

Solution (Python):
a, b = map(int, input().split())

if(a < 10 and b < 10):
    print(a*b)
else:
    print(-1)

Solution (Python):
n,m=map(int, input().split())
if(n>9 or m>9):
    print("-1")
else:
    print(m*n)

Solution (Python):

A,B = map(int, input().split())

if A<=9 and B<=9:
    print(A*B)
else:
    print(-1)

Solution (Python):
A,B = [int(x) for x in input().split()]
 
if (A>=10)or(B>=10):
  print("-1")
else:
  print(A*B)

Solution (Python):
a,b = map(int, input().split())
if a<=9 and a>=1 and b<=9 and b>=1:
  print(a*b)
else:
  print(-1)

Solution (Python):
a, b = map(int, input().split())

if 1 <= a and a <= 9 and 1 <= b and b <= 9:
  print("{}".format(a * b))
else:
  print(-1)

Solution (Python):
A,B = map(int,input().split())

if min(A,B) <= 0 or max(A,B) >=10:
    print(-1)
else:
    print(A*B)

Solution (Python):
a, b = map(int, input().split())
if a > 9 or b > 9:
  print(-1)
else:
  print(a * b)

Solution (Python):
A,B=map(str,input().split())
if (len(A)<=1) & (len(B)<=1):
  print(int(A)*int(B))
else:
  print(-1)

Solution (Python):
a,b=map(int,input().split())

if (a>9) or (b>9):
  print(-1)
else:
  print(a*b)

Solution (Python):
from enum import Enum
from queue import Queue

import numpy as np

import collections
import bisect
import sys
import math

from scipy.sparse.csgraph import floyd_warshall

BIG_NUM = 200000000000
MOD = 1000000007
EPS = 0.000000001

A,B = map(int,input().split())
if A < 10 and B < 10:
    print(A*B)
else:
    print(-1)

Solution (Python):
a, b = map(int, input().split())

if 1 <= a <= 9 and 1 <= b <= 9:
    print(a * b)
else:
    print(-1)

Solution (Python):
def main():
    A, B = map(int, input().split())
    print(A * B if A <= 9 and B <= 9 else -1)
    return


main()

Solution (Python):
a,b = map(int,input().split())

if 0<a<10:
  if 0<b<10:
    print(a*b)
  else:
    print(-1)
else:
  print(-1)

Solution (Python):
a,_,b,*c=input();print(-(c!=[])or int(a)*int(b))

Solution (Python):
def product(x,y):
    if (x > 9 or y > 9):
        print('-1')
    else:
        ans = x * y
        print(str(ans))

a = input().split()
product(int(a[0]),int(a[1]))

Solution (Python):
a,b = map(int,input().split())

if a<10 and b<10:
    print(a*b)
else:
    print(-1)

Solution (Python):
a,b = map(int,input().split())

if a<10 and b<10:
    print(a*b)
else:
    print(-1)

Solution (Python):
def main():
    a,b = map(int, input().split())
    print(a * b if a < 10 and b < 10 else "-1")


if __name__ == "__main__":
    main()

Solution (Python):
a, b = map(int, input().split())

if (a >= 10 or a < 0) or (b >= 10 or b < 0):
    print(-1)
else:
    print(a*b)

Solution (Python):
a,b=map(int,input().split())
ans=(a*b) if (a<=9 and b<=9 and a>=1 and b>=1) else -1
print(ans)

Solution (Python):
A,B = [int(x) for x in input().split()]
if A<=9 and B<=9:
    print(A*B)
else:
    print(-1)

Solution (Python):
A,B = [int(i) for i in input().split()]
if 1<=A<=9 and 1<=B<=9:
  print(A*B)
else:
  print(-1)

Solution (Python):
a, b = map(int, input().split())
if ((0 < a and a < 10) and (0 < b and b < 10)):
    print(a * b)
else:
    print(-1)

Solution (Python):
a,b=map(int,input().split())
print(-1 if a >= 10 or b >= 10 else a*b)

Solution (Python):
a,b=input().strip().split(" ")
a,b=[int(a),int(b)]
if a>9 or b>9:
  print(-1)
else:
  print(a*b)

Solution (Python):


def main():
    A,B = map(int, input().split())

    print(A*B if A < 10 and B < 10 else -1)


if __name__ == '__main__':
    main()

Solution (Python):
a,b = map(int, input().split())
if(a>9 or b>9): print(-1)
else: print(a*b)

Solution (Python):
(A, B) = map(int, input().split(' '))
if A < 10 and B < 10:
    print(str(A * B))
else:
    print('-1')

Solution (Python):
(A, B) = map(int, input().split(' '))
if A < 10 and B < 10:
    print(A * B)
else:
    print(-1)

Solution (Python):
a,b=map(int,input().split())
if(1<=a and a<=9 and 1<=b and b<=9):
    print(a*b)
else:
    print(-1)

Solution (Python):
N=input()
list = N.split()

A = int(list[0])
B = int(list[1])

if A < 10 and B < 10:
  print(A*B)

else:
  print(-1)

Solution (Python):
A, B = map(int, input().split())

print(A * B if max(A, B) <= 9 else -1)

Solution (Python):
A, B = [int(_) for _ in input().split()]
ok = range(1, 10)
if A in ok and B in ok:
    print(A * B)
else:
    print(-1)

Solution (Python):
a,b =map(int,raw_input().split())
if a <= 9 and b <=9:
	print a*b
else:
	print -1

Solution (Python):
A, B = [i if i<10 else -1 for i in map(int, input().split())]
print(A*B if A>0 and B>0 else -1)

Solution (Python):
AB = 1
for i in map(int,input().split()):
  if i<10 and AB>0: AB *= i
  else: AB = -1
print(AB)

Solution (Python):
a, b = map(int, input().split())
if a < 10 and b < 10:
  print(a * b)
else:
  print(-1)

Solution (Python):
a,b = map(int,input().split())
ans = a*b
if a<10 and a>0 and b>0 and b<10:
    print(ans)
else:
    print(-1)

Solution (Python):
A,B = map(int,input().split())  
if A < 10 and B < 10:
    print(A*B)
else:
    print(-1)

Solution (Python):

a, b = map(int, input().split())


res = a * b
if a > 9:
    res = -1
if b > 9:
    res = -1


print(res)

Solution (Python):
A, B = [int(i) for i in input().split()]

if A < 10 and B < 10:
  print(A * B)
else:
  print(-1)

Solution (Python):
A,B = map(int,input().split())
if A >= 1 and A <= 9 and B >=1 and B <= 9:
    print(A*B)
else:
    print(-1)

Solution (Python):
a, b = map(int, input().split())
if len(str(a)) == 1 and len(str(b)) == 1:
	print(a*b)
else:
	print(-1)

Solution (Python):
A,B=map(int,input().split())

if A>9 or B>9:
  print(-1)
else:
  print(A*B)

Solution (Python):
A,B = [int(x) for x in input().split()]
if A<10 and B<10:
  print(A*B)
else:
  print(-1)

Solution (Python):
A,B = [int(x) for x in input().split()]

if (A>=10)or(B>=10):
  print("-1")
else:
  print(A*B)

Solution (Python):
A, B = map(int, input().split())
if (1 <= A <= 9) & (1 <= B <= 9):
    s = A*B
    print(s)

else:
    print(-1)