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

Solution (Python):
import sys
sys.setrecursionlimit(1000000000)
ii = lambda: int(input())
mis = lambda: map(int,input().split())
lmis = lambda: list(mis())
INF = float('inf')

def main():
    A,B=mis()
    print(A*B if 0<A<10 and 0<B<10 else '-1')


if __name__ == "__main__":
    main()

Solution (Python):
import sys
readline = sys.stdin.readline
A, B = list(map(int, readline().split()))
if 0 < A < 10 and 0 < B < 10:
    ans = A * B
else:
    ans = -1

print(ans)

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 run(A, B):
    ret = A * B
    if A > 9:
        ret = -1
    if B > 9:
        ret = -1
    return ret


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


if __name__ == '__main__':
    main()

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

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

print(ans)

Solution (Python):
import sys
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 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(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,K = map(int,input().split())
if N>9 or K>9:
    print(-1)
else:
    print(N*K)

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

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

Solution (Python):

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

Solution (Python):
from sys import stdin
from itertools import accumulate, dropwhile, takewhile, groupby
import bisect
import copy




'''
条件に合うものを絞り込む
data = [1, 2, 3]
s = [x for x in data if x % 3 == 0]
'''

'''
文字配列を数値に
l_si = ['-10', '0', '100']

l_si_i = [int(s) for s in l_si]
'''

'''
a = [2, 4, 6, 8]
b = [3, 6, 9]

print(list(set(a) | set(b)))  
print(list(set(a) & set(b)))  
'''

'''
N = int(stdin.readline().rstrip())
A = [int(x) for x in stdin.readline().rstrip().split()]
count = 0
while len([x for x in A if x % 2 == 0]) == N:
    A = list(map(lambda y: y / 2, A))
    count += 1
print(count)
'''

'''
.append(要素)
.extend(要素)
.insert(場所,要素)
del 配列名[場所]
-1で末尾で末尾から一つ前
'''
'''
間に空白追加
' '.join(lis)
'''
'''
copy.copy(配列名)
'''
'''
sort()
sorted(reverse=true)
'''
'''
2分探索
bisect.bisect_left(リスト, 要素)
'''
num = stdin.readline().rstrip().split()
num1 = int(num[0])
num2 = int(num[1])
if (num1 >= 10 or num2 >= 10):
    print(-1)
else:
    print(num1*num2)

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


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

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

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

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

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

Solution (Python):
AB = input().split(' ')
A = int(AB[0])
B = int(AB[1])
if A > 9 or B > 9:
    print(-1)
else:
    print(A*B)

Solution (Python):
line = input().split(" ")
line[0] = int(line[0])
line[1] = int(line[1])

result = 0

if line[0] > 9 or line[1] > 9:
    result = -1
else:
    result = line[0] * line[1]

print(result)

Solution (Python):
B = [int(a) for a in input().split() ]

if B[0]>9 or B[1]>9:
    print("-1")
else:
    print(B[0]*B[1])

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

Solution (Python):

import sys
sys.setrecursionlimit(200000)
input = sys.stdin.readline
def ii(): return int(input())
def mi(): return map(int, input().rstrip().split())
def lmi(): return list(map(int, input().rstrip().split()))
def fi(): return float(input())
def mfi(): return map(float, input().rstrip().split())
def lmfi(): return list(map(float, input().rstrip().split()))
def li(): return list(input().rstrip())
def debug(*args, sep=" ", end="\n"): print("debug:", *args, file=sys.stderr, sep=sep, end=end) if not __debug__ else None
def exit(*arg): print(*arg); sys.exit()



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


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

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

Solution (Python):
import sys
input = sys.stdin.readline
def solve():
  a,b = (int(i) for i in input().split())
  if a<=9 and b <= 9:
    print(a*b)
  else:
    print(-1)
solve()

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 1<=A<=9 and 1<=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):
nums = list(map(int, input().split(" ")))

num_range = range(1, 10)

if nums[0] in num_range and nums[1] in num_range:
    print(nums[0] * nums[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 a > 9 or b > 9:
  print(str(-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 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 a<10 and b<10:
  print(a*b)
else:
  print("-1")

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


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

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


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

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=input().split()
A=int(A_B[0])
B=int(A_B[1])
flag=True

if 1>A or A>=10:
    flag=False

if 1>B or B>=10:
    flag=False

if flag==False:
    print(-1)
else:
    print(A*B)

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

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

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

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

if int(s[0]) <= 9 and int(s[0]) >= 1 and int(s[1]) <= 9 and int(s[0]) >= 1:
    print(int(s[0]) * int(s[1]))
else:
    print(-1)

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

Solution (Python):
a, b = 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 and A <= 9:
    if 1 <= B and B <= 9:
        print(A*B)
        exit(0)

print(-1)

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

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

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

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

print(a*b if 0<a<10 and 0<b<10 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):
from sys import stdin

a,b = [int(x) for x in stdin.readline().rstrip().split()]

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

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

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

Solution (Python):
import sys


def main():
    a, b = [int(s) for s in sys.stdin.readline().strip().split()]

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


main()

Solution (Python):
from collections import *
from math import *
n,p = map(int,input().split())
if(n <= 9 and p <= 9):
    print(n*p)
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):
s = input().rstrip().split(' ')
s = [int(x) for x in s] 
flg = True
for i in s:
  if (i < 1) or (i > 9):
    flg = False

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

Solution (Python):
import sys
input = sys.stdin.readline
sys.setrecursionlimit(100000)
def getN():
    return int(input())
def getList():
    return list(map(int, input().split()))

def solve():

    return

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



if __name__ =="__main__":
    main()

Solution (Python):

"""
Created on Sun Oct 27 21:03:22 2019

@author: doppe
"""

A, B = (int(x) for x in input().split())

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

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

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

Solution (Python):
import sys

stdin = sys.stdin

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

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

Solution (Python):



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


print(A * B if 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())
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 = 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 = (int(i) for i in input().split())
if(a < 10 and a > 0 and 0 < b and b < 10):
    print(a*b)
    exit()
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(int(x) for x in input().split())

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

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

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

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

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

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

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

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

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

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

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 permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy,copy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd

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

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

if  __name__=='__main__':
    main()

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

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

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

if (1<=A and A<=9) and (1<=B and B<=9):
    print('%d'%(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>=0 or b-10>=0:
  print("-1")
else:
  print(a*b)

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

Solution (Python):
A,B = map(int,input().split())
if A == 1 or A == 2 or A==3 or A==4 or A==5 or A==6 or A==7 or A==8 or A==9:
    if B == 1 or B == 2 or B==3 or B==4 or B==5 or B==6 or B==7 or B==8 or B==9:
        print(A*B)
    else:
        print('-1')
else:
    print('-1')

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

input_1=int(input_line[0])
input_2=int(input_line[1])



if input_1<=9 and input_2 <=9:
    print (input_1*input_2)
else:print ('-1')

Solution (Python):
if __name__ == '__main__':
    import sys
    input = sys.stdin.readline


    a, b = map(int, input().split())
    if a > 9 or b > 9:
        print(-1)
    else:
        print(int(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(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):
n = [int(i) for i in input().split()]
flag = True
for i in n:
  if(len(str(i))!=1):
    flag = False
if(flag):
  print(n[0]*n[1])
else:
  print(-1)

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

Solution (Python):

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

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

Solution (Python):
from sys import stdin
a, b= [int(x) for x in stdin.readline().rstrip().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 and B < 10:
    print(A*B)
else:
    print(-1)

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

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

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

Solution (Python):
x,y = map(int,input().split())
if x<=9 and y<=9:
  print(x*y)
if x>=10 or y>=10:
  print(-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 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):
i = [int(x) for x in input().split() if int(x) >= 1 and int(x) <= 9]
if len(i) != 2:
	print(-1)
else:
	print(i[0] * i[1])

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

Solution (Python):

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

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

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

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

ok = True

if not 1 <= lst[0] <= 9:
    ok = False
if not 1 <= lst[1] <= 9:
    ok = False

if ok:
    print(lst[0] * lst[1])
else:
    print(-1)

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

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

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

_a, _b = map(int, input().split())


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


chker(_a, _b)

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


def solve(A, B):
    if A > 9 or B > 9:
        return -1

    return A * B


print(solve(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 = list(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()))
ans = a * b

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

Solution (Python):
a, b = [int(v) for v in 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 or b>9:
    print("-1")
else:
    print(c)

Solution (Python):
import heapq as h
 
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):
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, b = list(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 0 < a < 10 and 0 < b < 10:
  print(a * b)
else:
  print(-1)

Solution (Python):
from copy import deepcopy
from sys import exit,setrecursionlimit
import math
from collections import defaultdict,Counter,deque
from itertools import permutations, combinations,combinations_with_replacement,product
from fractions import Fraction as frac
import bisect
import heapq

import logging
logging.basicConfig(level=logging.DEBUG)

import sys


setrecursionlimit(1000000)

MOD = 10**9+7
INF = float('inf')

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

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

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

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

Solution (Python):

import sys
sys.setrecursionlimit(10000)
INF = 1<<32


def solve(A: int, B: int):
    if(1 <= A <= 9 and 1 <= 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 = (int(i) for i in input().split())

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

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

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

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

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

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

Solution (Python):

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

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):
D = input().split(' ')

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

if a > 9 or a < 1 or b > 9 or b < 1:
    print(-1)
else:
    print(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=(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 <= 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):
import collections
import numpy as np
 





 
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(lambda i: int(i), input().split(' '))

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

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

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

if input_list[0] < 10 and input_list[1] < 10:
    print(input_list[0] * input_list[1])
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 and A<=9 and 1<=B and B<=9:
  print(A*B)
else:
  print(-1)

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

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

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

al=len(str(a))
bl=len(str(b))

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

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

Solution (Python):
import sys


def solve():
    input = sys.stdin.readline
    mod = 10 ** 9 + 7
    a, b = list(map(int, input().rstrip('\n').split()))
    if a <= 9 and b <= 9:
        print(a * b)
    else:
        print(-1)


if __name__ == '__main__':
    solve()

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

ans = -1

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

if b <= 9:
    if a <= 9:
        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):
import numpy as np
(a,b) = list(map(int,input().split()))
if a>9: 
    print(-1)
    exit(0)
if b>9:
    print(-1)
    exit(0)

print(a*b)

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

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

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

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

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

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

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

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

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