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 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):
n, m = map(int, input().split())

flg = 0
if 9 < n :
    flg = 1
if 9 < m :
    flg = 1

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

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

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

    

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):
import sys,collections,math,random;sys.setrecursionlimit(10**7)
def Is(): return [int(x) for x in sys.stdin.readline().split()]
def Ss(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

ab = Is()
if 0 < ab[0] < 10 and 0 < ab[1] < 10:
    print(ab[0] * ab[1])
else:
    print(-1)

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

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

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

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

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

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


if __name__ == '__main__':
    resolve()

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

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

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 = list(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 (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 = 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 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')
  exit()
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):




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

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


if __name__ == '__main__':
  main()

Solution (Python):

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

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

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

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

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

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

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

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

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

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

Solution (Python):
def main():
  a, b = raw_input().split()
  if len(a) > 1 or len(b) > 1:
    print(-1)
    return
  print(int(a)*int(b))

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

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

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

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

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


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

    main(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 = list(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):
x,y=[int(x) for x in input().split()]
if (x>9 or y>9):
  print(-1)
  exit()
  
print(x*y)

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

Solution (Python):
N,K =map(int, input().split(" "))


if N >9 or K>9:
      print(-1)
else:
      print(N*K)

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

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

Solution (Python):
import sys,collections as cl,bisect as bs
sys.setrecursionlimit(100000)
mod = 10**9+7
Max = sys.maxsize
def l(): 
    return list(map(int,input().split()))
def m(): 
    return map(int,input().split())
def onem(): 
    return int(input())
def s(x): 
    a = []
    aa = x[0]
    su = 1
    for i in range(len(x)-1):
        if aa != x[i+1]:
            a.append([aa,su])
            aa = x[i+1]
            su = 1
        else:
            su += 1
    a.append([aa,su])
    return a
def jo(x): 
    return " ".join(map(str,x))
def max2(x): 
    return max(map(max,x))
def In(x,a): 
    k = bs.bisect_left(a,x)
    if k != len(a) and a[k] ==  x:
        return True
    else:
        return False



a,c = m()

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

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

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




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

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



if A < 10 and B < 10:
    C = A * B
else:
    C = -1

print(C)

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

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

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

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

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

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

import sys
input = lambda: sys.stdin.readline()[:-1]
sys.setrecursionlimit(10**8)
inf = float('inf')
mod = 10**9+7

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

Solution (Python):

import sys
args = sys.argv
if len(args) == 2:
  from IPython import embed
  em = True
else:
  em = False
input = sys.stdin.readline
A, B = map(int, input().split())
if em: sys.stdin = open('/dev/tty')
if A < 10 and B < 10:
  print(A*B)
else:
  print("-1")

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

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


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

Solution (Python):

import sys

a,b = [ int(x) for x in sys.stdin.readline().strip().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):



import sys


input = sys.stdin.readline


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

Solution (Python):



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


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

    ans = solve(A, B)

    print(ans)

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

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

Solution (Python):

import sys

import heapq
import re
import bisect
import random
import math
import itertools
from collections import defaultdict, deque
from copy import deepcopy
from decimal import *

readl= lambda: list(map(int, sys.stdin.readline().split()))
readt= lambda: tuple(map(int, sys.stdin.readline().split()))
read = lambda: sys.stdin.readline().rstrip()
readi = lambda: int(read())
readmi = lambda: map(int, sys.stdin.readline().split())
readms = lambda: map(str, sys.stdin.readline().split())

a, b = readmi()

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

sys.setrecursionlimit(10**7)
INF = 10 ** 18
MOD = 10 ** 9 + 7
def LI(): return list(map(int, sys.stdin.readline().split()))
def II(): return int(sys.stdin.readline())
def LS(): return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]

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

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

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

Solution (Python):
import queue

"""
N = int(input())



A = []
for i in range(N):
	A.append(int(input()))

print(A)

"""
(N,M) = (int(i) for i in input().split(" "))
if N>=10 or M>=10:
	print(-1)
else:
	print(N*M)

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

if __name__ == '__main__':
    print(solve())

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

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

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

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

Solution (Python):



x,y = map(int,input().split())

if x > 9 or y > 9:
    print(-1)
else:
    print(x*y)

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

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

input = sys.stdin.readline


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


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

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

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

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

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

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

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


import sys

s2nn = lambda s: [int(c) for c in s.split(' ')]
ss2nn = lambda ss: [int(s) for s in list(ss)]
ss2nnn = lambda ss: [s2nn(s) for s in list(ss)]
i2s = lambda: sys.stdin.readline().rstrip()
i2n = lambda: int(i2s())
i2nn = lambda: s2nn(i2s())
ii2ss = lambda n: [i2s() for _ in range(n)]
ii2nn = lambda n: ss2nn(ii2ss(n))
ii2nnn = lambda n: ss2nnn(ii2ss(n))

def main():
    A,B=i2nn()
    if (A<10 and B<10):
        print(A*B)
    else:
        print(-1)
    return

main()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
from bisect import bisect_left,bisect_right
import sys
def input(): return sys.stdin.readline().strip()

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

main()

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

Solution (Python):


import array
import math
import os
import sys


def main():
    A, B = read_ints()
    print(A * B if A <= 9 and B <= 9 else -1)





DEBUG = 'DEBUG' in os.environ


def inp():
    return sys.stdin.readline().rstrip()


def read_int():
    return int(inp())


def read_ints():
    return [int(e) for e in inp().split()]


def dprint(*value, sep=' ', end='\n'):
    if DEBUG:
        print(*value, sep=sep, end=end)


if __name__ == '__main__':
    main()

Solution (Python):






import math
import statistics
import numpy as np
import queue

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 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):
import sys
input = sys.stdin.readline
from operator import itemgetter
sys.setrecursionlimit(10000000)

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

if __name__ == '__main__':
    main()

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

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

result = A * B

if A > 9 or A < 1 or B > 9 or B < 1:
    result = -1
    
print(result)

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

sys.setrecursionlimit(4100000)


def inputs(num_of_input):
    ins = [input() for i in range(num_of_input)]
    return ins


def solve(inputs):
    [A, B] = string_to_int(inputs[0])
    if A >= 10 or B >= 10:
        return -1
    return A * B


def string_to_int(string):
    return list(map(lambda x: int(x), string.split()))


if __name__ == "__main__":
    ret = solve(inputs(1))
    print(ret)

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

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


if __name__ == '__main__':
    main()

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

Solution (Python):
def solve():
  A, B = map(int, input().split())
  return A * B if A in range(1, 10) and B in range(1, 10) else -1

print(solve())

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
a, b = map(int, input().split())
if 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):
import sys
sys.setrecursionlimit(10**7)
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x) - 1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def II(): return int(sys.stdin.readline())
def SI(): return sys.stdin.readline().strip()
INF = 10 ** 18
MOD = 10 ** 9 + 7


debug = False

def dprint(*objects):
    if debug == True:
        print(*objects)

def solve():
    A, B = LI()
    if A > 9:
        print(-1)
        return
    if B > 9:
        print(-1)
        return
    print(A*B)

solve()

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 sys
input = sys.stdin.readline

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

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

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