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):
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())
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>9 or b>9:
    print("-1")
else:
    print(a * b)

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

if __name__ == "__main__":
    f_a()

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

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

Solution (Python):
ii = lambda: int(input())
mis = lambda: map(int,input().split())
lmis = lambda: list(mis())

x = lmis()
if(x[1]<=9 and x[0]<=9):
    print(x[0]*x[1])
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 = 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)
  exit()
else:
  print(a*b)

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 0 < a < 10 and 0 < b < 10:
    print(a * b)
else:
    print(-1)

Solution (Python):
a, b = (int(_) for _ in 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>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):
import sys

A, B = map(int, sys.stdin.readline().split())

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

Solution (Python):


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

Solution (Python):
import sys

def get_array(): return list(map(int, sys.stdin.readline().strip().split()))
def get_ints(): return map(int, sys.stdin.readline().strip().split())
def input(): return sys.stdin.readline().strip()

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

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

Solution (Python):
a, b = [int(i) for i in 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 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())
if 1 <= a <= 9 and 1 <= b <= 9:
    print(a*b)
else:
    print(-1)

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

Solution (Python):
import sys
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
mod = 10**9 + 7
inf = float('inf')
A,B = LI()
ans = int(0)

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

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

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

Solution (Python):
L,R = map(int,input().split())

r = 0

if L > 9 or R > 9:
	r = -1
else:
	r = R*L

print(r)

Solution (Python):
A_B = input().split()
if (int(A_B[0]) <= 9) & (int(A_B[1]) <= 9):
    print(int(A_B[0]) * int(A_B[1]))
else:
    print(-1)

Solution (Python):
A, B = map(int, input().split())
if (A<10) & (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<=9 and 1<=b<=9:
    print(a*b)
else:
    print(-1)

Solution (Python):
a,b = map(int, input().split())
print(a*b if (a<=9)&(b<=9) else -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())

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

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

if A < 1 or A > 9 or B < 1 or B > 9:
    print(-1)
    sys.exit(0)
print(A * B)

Solution (Python):
import numpy as np


def main():
	A, B = [int(x) for x in input().split()]
	
	if 9 < A:
		print(-1)
		return

	if 9 < B:
		print(-1)
		return

	print(A*B)

if __name__ == "__main__":
	main()

Solution (Python):
import numpy as np

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

if 1 <=  a <=  9 and 1 <= b <= 9:
    print(int(a * b))
else:
    print(int(-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())
print(A*B) if A<10 and B<10 else print(-1)

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

def Main(a, b):
    if(a > 0 and a < 10 and b > 0 and b < 10):
        return a*b
    else: 
        return -1

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

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())
if A>=10 or B>=10:
  print(-1)
else:
  print(A*B)

Solution (Python):

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

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

Solution (Python):
A, B = [int(a) for a in 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 and A<10) and (0<B 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:
    out = a*b
else:
    out = -1
print(out)

Solution (Python):
import sys
a, b= map(int, sys.stdin.readline().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 < 10 and B < 10:
  print(A*B)
else:
  print("-1")

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

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

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

Solution (Python):

N,M = map(int, input().split())

if N <= 9 and M <= 9:
    print(N*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):
a,b = map(int,input().split())

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

Solution (Python):
a, b = list(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 1 <= a <= 9 and 1 <= b <= 9:
    print(a*b)
else:
    print(-1)

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

print(Ans)

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

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

if A <= 0 or A >= 10 or B <= 0 or B >= 10:
    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):


from collections import deque, defaultdict
import itertools as ite
import sys
import math
import decimal

sys.setrecursionlimit(1000000)

INF = 10 ** 18
MOD = 10 ** 9 + 7

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

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

ret = 0
if 9 < A or 9 < B:
  ret = -1
else:
  ret = A * B
  
print(ret)

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>9:
	print(-1)
elif b>9:
	print(-1)
else:
	print(a*b)

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

if not (1 <= A and A <= 9):
    print(-1)
elif not (1 <= B and 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):
import sys
a, b = map(int, input().split())

if a >= 10 or b >=10:
    print(-1)
    sys.exit()
    
print(a*b)

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

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

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

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

Solution (Python):
a, b = list(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 a > 9 or b > 9:
    print(-1)
else:
    print(a * b)

Solution (Python):

n = list(map(int, input().split()))

if (n[0] < 10)and(n[1]<10):
    print(n[0]*n[1])
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 <= 9 and 1 <= 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):
def main():
    A, B = map(int, input().split())
    if A >=10 or B >= 10:
        print(-1)
    elif A <= 0 or B <= 0:
        print(-1)
    else:
        print(A * B) 


if __name__ == "__main__":
    main()

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

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

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, open(0).read().split())

print(A*B if A<=9 and B<=9 else -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())
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):
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 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 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):
A, B = map(int, input().split())

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

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

if x<10 and y<10:
  print(x*y)
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):
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())
if a<10 and b<10:
    print(a*b)
else:
    print(-1)

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

def Y(a,t = 0):
    if a==t : print('YES')
    else : print('NO')
def y(a, t =0):
    if a==t : print('Yes')
    else : print('No')
def cal(t):
    if 1<= t <10:
        return 1
    else:return 0

if cal(a)*cal(b):
    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())

print(a*b if a<=9 and 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 <= 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 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):
def isValid(x):
    return (x > 0 and x < 10)

a, b = list(map(int, input().split()))
if isValid(a) and isValid(b):
    print(a * b)
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())

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

Solution (Python):
import sys
sys.setrecursionlimit(10000000)


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):
a,b = map(int,input().split())
if a<10 and 0<a and 0<b and b<10:
  print(a*b)
else:
  print("-1")

Solution (Python):

si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))

a,b = nl()

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

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

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 <= 9 and b <= 9:
    print(a*b)
else:
    print(-1)

Solution (Python):
a, b = [int(x) for x in 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):
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):
str_list = input().split(' ')
int_list = [int(x) for x in str_list]

A, B = int_list[0], int_list[1]
if A <= 0 or A >= 10 or B <= 0 or 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(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 and B > 0 and 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):


import sys

debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        
        
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    (a, b) = [int(e) for e in lines[0].split(" ")]

    return (a, b)


def solve(a, b):

    if a <= 9 and b <= 9:
        result = a * b
    else:
        result = -1

    return result

def main():
    
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

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

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>0 and A<10 and B>0 and B<10:
    print(A*B)
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())

if a > 9 or b > 9:
    a = -1
    b = 1

c = a * b
print(c)

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

if(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(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 = 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 >= 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 > 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 > 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)
  exit()
  
print(a*b)

Solution (Python):
ab = list(map(int, input().split()))
if ab[0] < 10 and ab[1] < 10:
    print(ab[0] * ab[1])
else:
    print(-1)

Solution (Python):
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, ns().split()))
ns = lambda: stdin.readline()

a, b = na()

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

print(ans)

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 A >= 10 or B >= 10:
    print('-1')
    exit()

print(A*B)

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

Solution (Python):
import math
import random
from operator import itemgetter
import re
import sys
from itertools import accumulate
from collections import defaultdict
from collections import deque
from bisect import bisect_left,bisect
from heapq import heappop,heappush
from fractions import gcd
from copy import deepcopy
input = sys.stdin.readline
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())
print(a*b if a < 10 and b < 10 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 = 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<10 and B<10:
    print(A*B)
else:
    print(-1)

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

Solution (Python):
def check(x):
    return 1 <= x <= 9

A, B = [int(str) for str in input().strip().split()]
print(A * B if check(A) and check(B) else -1)

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

if __name__ == '__main__':
    main()

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

Solution (Python):
from sys import stdin
A,B = [int(x) for x in stdin.readline().rstrip().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):
from sys import stdout
printn = lambda x: stdout.write(x)
inn = lambda : int(input())
inl   = lambda: list(map(int, input().split()))
inm   = lambda:      map(int, input().split()) 
DBG = True 
BIG = 999999999
R = 10**9 + 7

def ddprint(x):
  if DBG:
    print(x)

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

Solution (Python):
def main():
    a,b = map(str, input().split())

    if len(a) == 1 and len(b) == 1:
        print(int(a) * int(b))
    else:
        print("-1")


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,-1][a>9 or b>9])

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())
if a<=9 and b<=9:
  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())
print(a*b if a <= 9 and b <= 9 else -1)

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

    if 9 < a or 9 < b:
        print(-1)
        return

    print(a * b)


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())
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>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>=1)&(a<=9)&(b>=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 1 <= A <=9 and 1 <= B <=9:
  print(A*B)
else:
  print(-1)

Solution (Python):


import sys
import math
import collections





tmp = input().split()
a,b = list(map(lambda a: int(a), tmp))


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)
    exit()
else:
    print(A * B)

Solution (Python):
import sys
from collections import deque,defaultdict
from fractions import gcd
from math import ceil

def N():
    return int(sys.stdin.readline())
def NK():
    return map(int,sys.stdin.readline().split())
def LS_I():
    return [int(x) for x in sys.stdin.readline().split()]
def LS_S():
    return list(input())
def main():
    a,b = NK()
    if a>=10 or b>=10:
        print(-1)
    else:
        print(a*b)

if __name__ == "__main__":
    main()

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

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

Solution (Python):
a, b=map(int, input().split())
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 > 9 or b > 9:
    print(-1)
else:
    print(a*b)

Solution (Python):


def solve(a, b):
    if 1 <= a <= 9 and 1 <= b <= 9:
        return a * b
    else:
        return -1


def main():
    a, b = (int(z) for z in input().split())
    res = solve(a, b)
    print(res)


if __name__ == "__main__":
    main()

Solution (Python):
import sys

input = sys.stdin.readline


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



if __name__ == '__main__':
    AtCoder().main()

Solution (Python):
from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    A, B = map(int, input().split())
    if A > 9 or B > 9:
        print(-1)
    else:
        print(A * B)


main()

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())

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):
nums = [int(i) for i in input().split()]
print(nums[0]*nums[1] if (nums[0]<10 and nums[0]>0 and nums[1]<10 and nums[1]>0) else -1)

Solution (Python):
A, B = map(lambda x: int(x), 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 and b<=9:
    print(a*b)
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):
lis=list(map(int,input().split()))
if 1<=lis[0]<=9 and 1<=lis[1]<=9:
  print(lis[0]*lis[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())

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

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

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

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

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

Solution (Python):

import sys


def solve(A: int, B: int):
    if A<=9 and B<=9:
        print(A*B)
    else:
        print(-1)
    return


def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  
    B = int(next(tokens))  
    solve(A, B)

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 1<=A<=9 and 1<=B<=9:
	ans = A*B
else:
	ans = -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 = map(int, input().split())

if a in range(1, 10) and b in range(1, 10):
    print(a * b)
else:
    print(-1)

Solution (Python):
def solve_a(a, b):
    if max(a, b) > 9:
        res = -1
    else:
        res = a * b
    return res


def main():
    
    a, b = map(int, input().split())
    res = solve_a(a, b)
    print(res)


def test():
    assert solve_a(2, 5) == 10
    assert solve_a(5, 10) == -1
    assert solve_a(9, 9) == 81


if __name__ == "__main__":
    test()
    main()

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):



def ri():
    return int(input())

def rl():
    return list(input().split())

def rli():
    return list(map(int, input().split()))

def main():
    a, b = rli()
    if a <= 9 and b <= 9:
        print(a*b)
    else:
        print(-1)


if __name__ == '__main__':
    main()

Solution (Python):


from sys import stdin, stderr

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

   return 0

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 = list(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)
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 A>=10 or B>=10:
    print(-1)
else:
    print(A*B)

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 = [int(x) for x in 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 <10 and B<10:
	print(A*B)
else:
	print(-1)

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] = list(map(int,input().split()))
if 1<=A<=9 and 1<=B<=9:
    print(A*B)
else:
    print(-1)

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

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 <= 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] = [int(i) for i in input().split()]

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

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 1 <= A <= 9 and 1 <= B <= 9:
    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(str,input().split())

if len(a) == 1 and len(b) == 1:
	print("%d" % (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):

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

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

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

if __name__ == '__main__':
    solve()