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 0<a<10 and 0<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
import math
import bisect
 
 
sys.setrecursionlimit(1000000000)
def input():
    return sys.stdin.readline().strip()
 
def iinput():
    return int(input())
 
def finput():
    return float(input())
 
def tinput():
    return input().split()
 
def rinput():
    return map(int, tinput())
 
def rlinput():
    return list(rinput())
 
def modst(a, s):
    res = 1
    while s:
        if s % 2:
            res *= a
        a *= a
        s //= 2
    return res

 
def main():
    a, b = rinput()
    if a >= 10 or b >= 10:
        print(-1)
    else:
        print(a * b)
main()

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):
"""
制約
1≦A≦20
1≦B≦20
"""


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

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

import sys
sys.setrecursionlimit(12345678)
import itertools
from collections import Counter
from collections import defaultdict
from collections import deque
import bisect
from heapq import heappush, heappop


def main():
    a, b = map(int, input().split())
    if a > 9 or b > 9:
        print(-1)
        return

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

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

Solution (Python):
A,B=input().split()
if len(A) < 2 and len(B) < 2:
  print(int(A)*int(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<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):
L=list(map(int,input().split()))
if any(l>9 for l in L):
  print(-1)
else:
  print(L[0]*L[1])

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

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

print(a*b if len(s)<4 else -1)

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

import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush, heapify
import math
import itertools
import random
 




 
INF = float('inf')
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    A,B = inputMap()
    if A >= 10 or B >= 10:
        print(-1)
        sys.exit()
        
    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):
import numpy as np
given = np.array( list( map( int, input().split() ) ) )

if all( (given <= 9) & (given >= 1) ):
  result = np.prod( given )
else:
  result = -1

print( result )

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=input().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())

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 len(str(a)) >= 2 or len(str(b)) >= 2:
    print("-1")
else:
    print(a*b)

Solution (Python):


a,b=map(int,raw_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 -1)

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

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

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

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

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

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

Solution (Python):
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 not (A>0 and A<10):
    print("-1")
elif not (B>0 and 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):

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


if __name__ == "__main__":
    main()

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

Solution (Python):
a,_,b,*c=input();print(-(len(c)>0)or int(a)*int(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,*c=input();print(-(len(c)>0)or int(a)*int(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 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 = 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 and b<10:
    print(a*b)
else:
    print(-1)

Solution (Python):
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(N=None): return list(MAP()) if N is None else [INT() for i in range(N)]

A, B = MAP()

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

Solution (Python):
a, b = map(int, raw_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 (10 > a > 0) and (10 > b > 0 ):
    print(a*b)
else :
    print("-1")

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

Solution (Python):
X,Y=[int(x) for x in input().split()]
print((-1,X*Y)[max(X,Y)<=9])

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

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

if a[0] < 10 and a[1] < 10:
  print(a[0] * a[1])
else:
  print(-1)

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

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

Solution (Python):
"""
author : dokueki
"""
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):
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)
    exit()
if B > 9:
    print(- 1)
    exit()
print(A * B)

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

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

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

Solution (Python):
try:a,_,b=input()
except:a,b=1,-1
print(int(a)*int(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 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 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):
def solve():
    a, b = read()
    result = think(a, b)
    write(result)


def read():
    return read_int(2)


def read_int(n):
    return list(map(lambda x: int(x), read_line().split(' ')))[:n]


def read_float(n):
    return list(map(lambda x: float(x), read_line().split(' ')))[:n]


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(a, b):
    if a >= 10 or b >= 10:
        return -1
    return a * b


def write(result):
    print(result)


if __name__ == '__main__':
    solve()

Solution (Python):
m = input()
n = m.split(" ")
if (int(n[0])<=9 and int(n[1])<=9):
    print(int(n[0])*int(n[1]))
else:
    print("-1")

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

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

Solution (Python):



import sys
import math
from bisect import bisect_right as br
from bisect import bisect_left as bl
sys.setrecursionlimit(1000000)
from heapq import heappush, heappop,heappushpop
from collections import defaultdict
from itertools import accumulate
from collections import Counter
from collections import deque
from operator import itemgetter
from itertools import permutations
mod = 10**9 + 7
inf = float('inf')
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))

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

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


x,y=input().split()

if int(x)<=0 or int(x)>=10 or int(y)<=0 or int(y)>=10:
    print("-1")
else:
    print(int(x)*int(y))

Solution (Python):
import sys


		
def main():
	b , c = map(int, input().split())
	if b <= 9 and c <= 9:
		return b*c
	print(-1)
	
	

isTest=False

def pa(v):
	if isTest:
		print(v)

if __name__ == "__main__":
	if sys.platform =='ios':
		sys.stdin=open('inputFile.txt')
		isTest=True
	else:
		pass
		
			
	ret = main()
	if ret is not None:
		print(ret)

Solution (Python):
n,m=map(int,input().split())
if n>9 or m>9 :

    print(-1)
else:
    print(n*m)

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):
def acinput():
    return list(map(int, input().split(" ")))


A,B=acinput()

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

Solution (Python):
q=list(map(int,input().split()))
ans=1
for i in q:
	if 1 <= i <=9:
		ans=ans*i
	else:
		print('-1')
		exit()
print(ans)

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

Solution (Python):

def input_int():
    hoge = input().split()
    A = int(hoge[0])
    B = int(hoge[1])
    return A, B

if __name__ == "__main__":
    A, B = input_int()
    if A <=9 and B <= 9:
        ret = A * B
    else:
        ret = -1
    print(ret)

Solution (Python):

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


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

Solution (Python):
s = raw_input().split()
[A, B] = s
A = int(A)
B = int(B)


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:
	ans = a * b
else:
	ans = -1

print(ans)

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<=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=(int(x) for x in input().split())
if 0<=A<=9 and 0<=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 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 < 10 and B < 10:
    print(A*B)
else:
    print(-1)

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

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

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

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

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

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

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

    if a<=9 and b<=9:
        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):


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


if __name__ == '__main__':
    solve()

Solution (Python):
def multiply(A, B):
  if A < 10 and B < 10:
    return A * B
  else:
    return -1

if __name__ == '__main__':
  A, B = map(int, input().split())
  print(multiply(A, B))

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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

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

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


if __name__ == '__main__':
    main()

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

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

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

if A < 1 or A > 9:
    print('{}'.format(-1))
elif B < 1 or B >9:
    print('{}'.format(-1))
else:
    print('{}'.format(A * B))

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

if i[0] <= 9:
    if i[1] <= 9:
        print(i[0] * i[1])
    else:
        print('-1')

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

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

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

if a[0]<10 and a[1]<10:
	print(a[0]*a[1])
else:
	print(-1)

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

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

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

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

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

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

Solution (Python):
data = list(map(lambda x: int(x), input().split()))
     
if __name__ == "__main__":
  if data[0] < 10:
    if data[1] < 10:
      answer = data[0]*data[1]
    else:
      answer = -1
  else:
    answer = -1
    
  print(answer)

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

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

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

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

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

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

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

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

Solution (Python):
A, B = [int(n) for n 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 A<10and B<10:
  print(A*B)
else:
  print('-1')

Solution (Python):





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

if a >= 10 or b >= 10:
    l = -1
else:
    l = a*b

print(l)

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

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

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

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

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

Solution (Python):
a = list(map(int,input().split()))
if a[0] >= 10 or a[1] >= 10:
  print('-1')
else:
  print(a[0] * 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):
AB = list(map(int, input().split()))


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

Solution (Python):
txt = list(input().split())
A = int(txt[0])
B = int(txt[1])
if A>=1 and A<=9 and B>=1 and B<=9:
  print(A*B)
else:
  print(-1)

Solution (Python):
a,b = map(str,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//10 >=1 or  B//10 >=1:
    print(-1)
else:
    print(A*B)

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

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

Solution (Python):
import sys

for line in sys.stdin:
    A, B = list(map(int, line.split(' ')))


    if 1 <= A <= 9 and 1 <= B <= 9:
        out = A*B
        print(out)
    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 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())
if a <= 9 and b <= 9:
  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(i) for i in input().split()]
print(a*b if (a<10)and(b<10) else -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 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):
inp = input().split()
a = int(inp[0])
b = int(inp[1])

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

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):
lines=input().split()
a=int(lines[0])
b=int(lines[1])
if a>9 or b>9:
    print(-1)
else:
    print(a*b)

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

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()) 
d = -1

if a <= 9:
  if b <= 9:
    d = a * b


print(d)

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

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

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

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

from itertools import product
from bisect import bisect
from collections import deque
import sys

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

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

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


def calc(A, B):
    if A >= 1 and A <= 9 and B >= 1 and B <= 9:
        return A * B
    return -1

print(calc(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 = [ int(v) for v in input().split() ]
print( num[0]*num[1] if all([ 1 <= i < 10 for i in num ]) else -1 )

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


if __name__ == "__main__":
    resolve()

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


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

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

if L >= 10 or R >= 10 or L < 1 or R < 1:
    print(-1)
else:
    print(L*R)

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


if __name__ == '__main__':
  main()

Solution (Python):

import sys


def solve(A: int, B: int):
    
    if A > 9 or B > 9:
        print(-1)
    else:
        print(A * B)
    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 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):



import pdb
import sys
F = sys.stdin
A, B = F.readline().rstrip().split()
A = int(A)
B = int(B)

if A < 10 and B < 10:
    print(A * B)
    sys.exit()

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())
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 = (int(x) for x 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(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 = input().split(" ")
A = int(A)
B = int(B)

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

Solution (Python):
l=[int(i) for i in input().split(" ")]
if l[0]>=1 and l[0]<=9 and l[1]>=1 and l[1]<=9:
    ans=l[0]*l[1]
else:
    ans=-1
print(ans)