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

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

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

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

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

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

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

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

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

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<=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 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 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 A < 10 and B < 10 else '-1')

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

if len(a)>=2 or len(b)>=2:
  print(-1)
else:
  a=int(a)
  b=int(b)
  print(a*b)

Solution (Python):

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

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

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

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

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

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

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

if (a == 0 or b == 0): 
  ans = -1
elif (a > 9 or b > 9):
  ans = -1
else :
  ans = a * b

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

Solution (Python):
A = list(map(int,input().split()))
if A[0] > 9 or A[1] > 9:
    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 = map(int,input().split())

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

Solution (Python):
X,Y = map(int,input().split())
if(X <= 9 and X >= 0 and Y <= 9 and Y >= 0):
    print(X * Y)
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(int(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 > 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())
print(A * B if A < 10 and B < 10 else -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 = 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):
aa = list(map(int, input().split()))
if 1 <= min(aa) <= 9 and 1 <= max(aa) <= 9:
    print(aa[0] * aa[1])
else:
    print(-1)

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

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

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

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

Solution (Python):
inputted = list(map(int, input().split()))
A = inputted[0]
B = inputted[1]

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

print(answer)

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

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

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

Solution (Python):
base = input().split()
a = int(base[0])
b = int(base[1])
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
input = sys.stdin.readline

def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
a,b=MI()
if 1<=a<=9 and 1<=b<=9:
    print(a*b)
else:
    print(-1)

Solution (Python):
import sys
input = sys.stdin.readline
from collections import Counter, deque

INF = float('inf')


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

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

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

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

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

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

Solution (Python):
a, b = map(int, input().split())
nums = [1, 2, 3, 4, 5, 6, 7, 8, 9]
if a in nums and b in nums:
  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 = input().split()
if len(a)==1 and len(b)==1:
  print(int(a)*int(b))
else:
  print(-1)

Solution (Python):
from sys import stdin

A, B = [int(x) for x in stdin.readline().rstrip().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) & (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 or B>=10:
  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())

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

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

if len(str(A)) == 1 and len(str(B)) == 1:
  print(A*B)
else:
  print('-1')

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

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

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

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

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

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)

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

Solution (Python):
from collections import deque
from collections import Counter
from itertools import product, permutations,combinations
from operator import itemgetter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right, bisect




from fractions import gcd
from math import ceil,floor, sqrt, cos, sin, pi, factorial
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10**8)
INF = float('inf')

def main():
  a, b = map(int, readline().split())
  if a>9 or b>9:
    print('-1')
  else:
    print(a*b)
  
  
if __name__ == '__main__':
  main()

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

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

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

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

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

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

Solution (Python):
import itertools
import fractions
def main():
  a,b = map(int,input().split())
  print(a*b if a<10 and b<10 else -1)
if __name__ == '__main__':
  main()

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

Solution (Python):
import sys

a, b = map(int, sys.stdin.readline().split())

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

if __name__ ==  '__main__':
    main()

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

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

A, B = lr()
print(-1 if max(A, B) >= 10 else A * B)

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

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

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

Solution (Python):
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    b, c = map(int, input().split())

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

Solution (Python):
A, B = [int(x) for x in input().split()]
if max(A, 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(str,input().split())
if len(A)==1 and len(B)==1:
    print(int(A)*int(B))
else:
    print("-1")

Solution (Python):
a = input().split(" ")
if int(a[0]) <= 9 and int(a[1]) <= 9:
  print(int(a[0])*int(a[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<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):
import sys

def input():
    return sys.stdin.readline().rstrip('\n')

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

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

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

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

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

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

ans = a * b
print(ans)

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

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

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

Solution (Python):
S,T, = map(int,input().split())
if S<=9 and T<=9:
  print(S*T)
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 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(int(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 = map(int, input().split())

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

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

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

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

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

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

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

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

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

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

Solution (Python):


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

ans = -1
if a < 10 and b < 10:
    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 sys

input = sys.stdin.readline

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

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

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

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

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

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

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

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

else:
    print(-1)

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

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

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

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

print(ans)

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

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

Solution (Python):
import sys
input = lambda: sys.stdin.readline().rstrip()
input_nums = lambda: list(map(int, input().split()))

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

if __name__ == '__main__':
    main()

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

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

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(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 > 9:
    print(-1)
elif b > 9:
    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("{:}".format(a*b))

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

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

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

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


if __name__ == "__main__":
    main()

Solution (Python):

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

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

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

Solution (Python):
a, b = (int(x) for x in input().split())
if a <= 9 and b<=9:
    c = a * b
    print(c)
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):
def resolve():
    a, b = map(int, input().split())
    if a <=9 and b <= 9:
        print(a*b)
    else:
        print(-1)
resolve()

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

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

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

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

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

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

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

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

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

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

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

ans = A*B

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

Solution (Python):
def solve():
    N, M = map(int, input().split())
    return N*M if max(N, M) < 10 else -1

print(solve())

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

sys.setrecursionlimit(100000000)
input = lambda: sys.stdin.readline().rstrip()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):

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

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

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)

Solution (Python):

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

Solution (Python):
def main():
    A,B = list(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 > 9 or B > 9:
    print(-1)
else:
    print(A * B)

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

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

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