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

Solution (Python):

[A,B] = list(map(int,input().split()))

Aketa = len(str(A))
Bketa = len(str(B))

if Aketa==1 and Bketa==1:
    out = A*B
else:
    out='-1'

print(out)

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

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

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

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

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

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

Solution (Python):
from sys import stdin

a, b = stdin.readline().rstrip().split()

if (len(a) == 1) and (len(b) == 1):
    print(int(a) * int(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<=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())
ans = 0
if a > 9 or b > 9:
  ans = -1
else:
  ans = a * b
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 = list(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 max(A,B)<=9:
  print(A*B)
else:
  print(-1)

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

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 A <10 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):
import sys
import os


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

    a, b = list(map(int, sys.stdin.readline().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 > 9 or b > 9):
    print("-1")
else:
    print(a * b)

Solution (Python):
ab = [int(i) for i in input().split()]

if all(1 <= i <= 9 for i in ab):
	a, b = ab
	print(a * b)
else:
	print(-1)

Solution (Python):





import sys

input = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


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

Solution (Python):
A,B=list(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())

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

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

if 0<num[0]<10 and 0<num[1]<10:
  a = num[0]*num[1]
else:
  a = -1

print(a)

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

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

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

Solution (Python):
N = input().split()
if int(N[0]) >= 10 or int(N[1]) >= 10:
    print("-1")
else:
    print(int(N[0])*int(N[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 all([i-1 in range(9) for i in [a, b]]):
  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 = (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 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):



def main():
    operand_a, operand_b = map(int, input().split(' '))

    if operand_a < 10 and operand_b < 10:
        print(operand_a * operand_b)
    else:
        print(-1)

    return 0


if __name__ == '__main__':
    main()

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

Solution (Python):
number = input().split(" ")
A = int(number[0])
B = int(number[1])
if A >= 10:
	print(-1)
elif 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):
a, b = map(int,input().split())

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

Solution (Python):

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

Solution (Python):


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

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

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

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

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

Solution (Python):
a,b = map(int,input().split(" "))
if 1<=a<=9 and 1<=b<=9:
  print("{}".format(a*b))
else:
  print("{}".format(-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("-1" if max(A,B)>9 else 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):
n,m=map(int,input().split())
if 0<n<10 and 0<m<10:
  print(n*m)
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 < 10 and b < 10 else -1)

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

Solution (Python):



a, b = [int(x) for x in input().split()]
print(a * b) if a <= 9 and b <= 9 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())
ans = -1
if len(str(a))==1 and len(str(b))==1:
    ans = a * b
print(ans)

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

Solution (Python):



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

if __name__=='__main__':
  main()

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

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

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

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

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

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

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

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

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

Solution (Python):
AB = input()    
A, B = AB.split() 
A = int(A)  
B = int(B)  
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())

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())
print(a*b if max(a,b) < 10 else -1)

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(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")
def IS(): return sys.stdin.readline()[:-1]
def II(): return int(sys.stdin.readline())
def MI(): return map(int, sys.stdin.readline().split())
def LI(): return list(map(int, sys.stdin.readline().split()))
def LI1(): return list(map(int1, sys.stdin.readline().split()))
def LII(rows_number): return [II() for _ in range(rows_number)]
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def LLI1(rows_number): return [LI1() for _ in range(rows_number)]

def main():
	A,B = MI()
	if(A >= 10 or B>=10):
		print(-1)
	else:
		print(A*B)

main()

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

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import accumulate, permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits
from bisect import bisect, bisect_left
from fractions import gcd
from heapq import heappush, heappop
from functools import reduce
def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

A, B = MAP()

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 all([A < 10, B < 10]) else -1)


if __name__ == "__main__":
    main()

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

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

Solution (Python):
a, b = map(int,input().split())
if len(str(a)) >= 2 or len(str(b)) >= 2: 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())
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())

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

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

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

Solution (Python):
a,b = map(int,input().split())
print(-1 if a//10 or b//10 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,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())
f= 0<a<10 and 0<b<10
print(a*b if f is True 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(str, input().split())
ans = -1

if len(A) == 1 and len(B) == 1:
    ans = int(A) * int(B)

print(ans)

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

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 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());print(a * b) if max(a, b) <= 9 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 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 <= 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(str, input().split())
if len(a)+len(b) != 2:
  print(-1)
else:
  print(int(a)*int(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())
print(a * b if 1 <= a <= 9 and 1 <= b <= 9 else -1)

Solution (Python):

A,B = [int(i) for i in input().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 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):
n,m=map(int,input().split())
print(n*m if max(n,m)<10 else -1)

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

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):
x = input().split()
A, B = [int(i) for i in x]
if A < 10 and B < 10:
  sol = A * B
else:
  sol = "-1"
print(sol)

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


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

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

def read_ints(row):
    return list(map(int, row().split()))

A,B = read_ints(row)

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

Solution (Python):

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

Solution (Python):
A, B = map(int, input().split())
if 0 <= A <= 9 and 0 <= B <= 9:
    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):
A,B = map(int, input().split())

ans = -1

if A >= 1 and A < 10:
  if B >= 1 and B < 10:
    ans = A * B
  
print(ans)

Solution (Python):
import sys

def propare():
    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)

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


    return


 
if __name__ == "__main__":
    propare()

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

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

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

Solution (Python):
n,m=map(int,input().split())
if n<10 and m<10:
    print(n*m)
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 < 10 and b < 10:
    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())
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())

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

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

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

print(res)

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 A>9:
    print("-1")
elif B>9:
    print("-1")
    
else:
    print(str(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 1<=a<=9 and 1<=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 (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 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=list(map(int,input().split()));
hh=False;
if (a>9 or b>9):
	print(-1);
else:
	print(a*b);

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

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

s = -1

if (a < 10) & (b < 10):
  s = a * b
  
print(s)

Solution (Python):
A, B = (int(x) for x in 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 <= 9 and B <= 9 else -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<=9 and 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<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 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())
C = A*B
if A <= 9 and B <= 9:
    print(C)
else:
    print('-1')

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

Solution (Python):
def LI():
  return [int(s) for s in input().split()]

A,B = LI()

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

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