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



Sample input:
2 5


Sample output:
10

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(a*b)

Submission status: Wrong Answer

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

print(A*B)

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
print('Yes' if a < 10 and b < 10 and a > 0 and b > 0 else 'No')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
print(a*b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int ,input().split(' '))
n = a*b
aa = str(a)
aa += str(b)
f= True
for ch in aa:
    if ch == '0':
        print(-1)
        f = False
        break
if f:
    print(n)

Submission status: Wrong Answer

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

if a >= 10 and b >= 10:
    print('-1')
else:
    answer = a * b
    print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
print(A*B)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
S = list(input())
if len(S) > 3:
    print(int(S[0]) * int(S[-1]))
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print([a*b,-1][a|b>9])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys, bisect, math, itertools, string, queue, copy
# import numpy as np
# import scipy
# from collections import Counter,defaultdict,deque
# from itertools import permutations, combinations
# from heapq import heappop, heappush
# # input = sys.stdin.readline
# sys.setrecursionlimit(10**8)
# mod = 10**9+7
def inp(): return int(input())
def inpm(): return map(int,input().split())
def inpl(): return list(map(int, input().split()))
def inpls(): return list(input().split())
def inplm(n): return list(int(input()) for _ in range(n))
def inplL(n): return [list(input()) for _ in range(n)]
def inplT(n): return [tuple(input()) for _ in range(n)]
def inpll(n): return [list(map(int, input().split())) for _ in range(n)]
def inplls(n): return sorted([list(map(int, input().split())) for _ in range(n)])

a, b = inpm()
ans = -1
if(a < 10 or b < 10):
    ans = a * b
print(ans)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
print(A*B)

Submission status: Wrong Answer

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

print(A * B)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
#k = int(input())
#s = input()
#a, b = map(int, input().split())
#s, t = map(str, input().split())
#l = list(map(int, input().split()))

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


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

print(a*b)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
A,B = map(int,input().split())

if not ( 1 <= A <= 20 ): sys.exit()
if not ( 1 <= B <= 20 ): sys.exit()
if not (isinstance(A,int) and isinstance(B,int)): sys.exit()

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
numz = input()
count = 0
numz_pair = numz.split(" ")
numz_pair = list(map(int, numz_pair))

for i in range(len(numz_pair)):
    if numz_pair[i] <= 9:
        count = count + 1
        print("True")
    else:
        print(-1)
        break

if count == len(numz_pair)+1:
    print(numz_pair[0]*numz_pair[1])

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
c = a*b

if 1<= c and c <= 81:
  print(c)
else:
  print("-1")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = raw_input()
a,b = s.split(' ')
a,b = int(a),int(b)

def mul(a,b):
    if a <= 9 and a >=1 and (1 <= b <= 9):
        return a * b
    else:
        return -1

mul(a,b)

Submission status: Wrong Answer

Solution code:
def mul():
    s = raw_input()

    a,b = s.split(' ')
    a,b = int(a),int(b)

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

Submission status: Wrong Answer

Solution code:
s = raw_input()
n1,  n2 = s.split()
n1 = int(n1)
n2 = int(n2)
flag = True
if n1 < 0 or n1 > 9:
	flag = False
if n2 < 0 or n2 < 9:
	flag = False
if flag:
	print n1 * n2
else:
	print -1

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=list(map(int,input().split()))
print(a*b)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
for i in range(1,10):
    for j in range(1,10):
        if A*B==i*j:
            print(A*B)
            exit(0)
print("-1")

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
for i in range(1,10):
    for j in range(1,10):
        print(A*B)
        if A*B==i*j:
            print(A*B)
            exit(0)
print("-1")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
prod=A*B
if prod%10==0:
  print(-1)
else:
  print(prod)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print(a*b)

Submission status: Wrong Answer

Solution code:
# 144 A

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

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

Submission status: Wrong Answer

Solution code:
a1=input()
a2=[i for i in a1.split()]
x,y=float(a2[0]),float(a2[1])
v,v1=x.is_integer(),y.is_integer()
if 1<=(x and y)<=20 and v==v1==True:
    if 1<=(x and y)<=9:
        print(int(x*y))
    else:
        print('-1')

Submission status: Wrong Answer

Solution code:
a1=input()
a2=[i for i in a1.split()]
x,y=int(a2[0]),int(a2[1])
if 1<=(x and y)<=20:
    if 1<=(x and y)<=9:
        print(x*y)
    else:
        print('-1')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A<=9 and B<=9:
    print()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print((lambda x:(('Yes' if (x[0] <= 9 and x[1] <= 9) else 'No')))(list(map(int,input().split()))))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
ab=input("A B")
a,b=ab.split()
a=int(a)
b=int(b)
if(a<10,b<10):
  print(a*b)
else:
  print(-1)

Submission status: Wrong Answer

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

print(-1 if A*B > 81 else A*B)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
a, b = map(int, input().split())
ans = -1
if a < 10 and b < 10:
    ams = a * b
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int, raw_input().split(' '))
print a * b * (1 if a < 10 and b < 10 else 0)

Submission status: Wrong Answer

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

print(a*b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def kuku(a,b):
   if a>9 or b>9:
        return(-1)
   return(a*b)

Submission status: Wrong Answer

Solution code:
def kuku(a,b):
    if a<=9 and b<=9:
        return a*b
    return -1

Submission status: Wrong Answer

Solution code:
def kuku(a,b):
    if a<=9 and b<=9:
        return a*b
    else:
        return -1

Submission status: Wrong Answer

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

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

ans = A * B
print(ans)

Submission status: Wrong Answer

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

if A > 10 or B > 10:
    print(-1)
    exit()

ans = A * B
print(ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
print(a*b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = list(map(str,input().split()))

if(len([0]) < 2 and len(x[1]) < 2):
  print("Yes")
else:
  print("No")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
li = []
for i in range(1,10):
    for j in range(1,10):
        if i*j == a*b:
            print(a*b)
            exit()
print(-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    A, B = map(int,input().split())
    print( A * B if (A % 10 == 0) & (B % 10 == 0) else -1) 
    return 0
    
if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print(0 if a*b > 81 else a*b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = input().split()
a = int(x[0])
b = int(x[0])
if a <= 9 and b <= 9:
  print(a * b)
else:
  print('-1')

Submission status: Wrong Answer

Solution code:
G = 4
F = 3
if G % 4 == 0:
	if F % 2 == 0:
		print(F * G)
else: print(-1)

Submission status: Wrong Answer

Solution code:
A,B=[int(x) for x in input().rstrip().split()]
if 1<=A*B:
  print(A*B)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
A,B=[int(x) for x in input().rstrip().split()]
if 1<A*B:
  print(A*B)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().split()))
print(a * b)

Submission status: Wrong Answer

Solution code:

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

x=a*b
c=0
for i in range(1,10):
    for j in range(1,10):
        
        if (j*i==x):
            c=c+1
if (c==0):
    print('-1')
if (c!=0):
    print(x)

Submission status: Wrong Answer

Solution code:

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

x=a*b
c=0
for i in range(1,10):
    for j in range(1,10):
        
        if (j*i==x):
            c=c+1
if (c==0):
    print('-1')
if (c!=0):
    print(c)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
L = A*B
if L > 81:
    print("-1")
else:
    print(L)

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a,b = list(map(int, input().split()))
print(a*b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

if a <= 2*b:
    print(0)
else:
    print(a - 2*b)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if (A*B)==50:
    print(-1)
if (A*B)//10>=5 and (A*B)>81:
    print(-1)
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if (A*B)//10>=5 and (A*B)>81:
    print(-1)
else:
    print(A*B)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
result = a*b
if (result > 81):
    print(-1)
else:
    print(result)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A = list(map(int,input().split()))
if A[0]*A[1] > 81:
    print(-1)
else:
    print(A[0]*A[1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

A, B = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
def func(a,b):
  for i in range(1,10):
    for j in range(1,10):
      if a*b == i*j:
        print(a*b)
        return i,j
  if a*b != i*j:
    print(-1)
func(A,B)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a<10 and b<10:
  print(a*b)
else:
  print('No')

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A > 9 or B > 0:
    print("-1")
else: 
    print(str(A * B))

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
print(str(A * B))

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if A < 9 and B <9 :

    print ( A * B)
else :
    print (-1)

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if A < 9 and B <9 :

    print ( A * B)
else :
    print ( "-1")

Submission status: Wrong Answer

Solution code:
A,B=map(int,input().split())
if A < 9 and B <9 :

    print ( A * B)
else :
    print ( " -1 "
)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a, b = (int(x) for x in input().split())
if a >=1 and a <=20 and b>=1 and b<=20:
    c = a * b
    if c > 0 and c < 82:
        print(c)
    else:
        print("-1")
else:
    print("-1")

Submission status: Wrong Answer

Solution code:
a, b = (int(x) for x in input().split())
c = a * b
if c > 0 and c < 82 :
    print(c)
else:
    print("-1")

Submission status: Wrong Answer

Solution code:
a, b = (int(x) for x in input().split())
c = a * b
if c > 1 and c < 400:
    print(c)
else:
    print("-1")

Submission status: Wrong Answer

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

n = -1
if (a < 10) or (b < 10):
  n = a * b
else:
  pass
print(n)

Submission status: Wrong Answer

Solution code:
def main():
    A, B = map(int, input().split())
    p = A * B
    if p >= 82:
        print(-1)
    else:
        print(p)
main()

Submission status: Wrong Answer

Solution code:
def main():
    A, B = map(int, input().split())
    p = A * B
    if p>81:
        print(-1)
    else:
        print(p)
main()

Submission status: Wrong Answer

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

ans = A*B

if(ans>81):
  print(-1)
else:
  print(ans)

Submission status: Wrong Answer

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

ans = A*B

if(ans>81):
  print("-1")
else:
  print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x , y = map(int , input(). split())
if x < 11 and y < 11 :
    print(x * y)
else:
    print(-1)

Submission status: Wrong Answer

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

if a <= 10 or b <= 10:
    print(-1)
    exit()
print(a * b)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

if a < 9 & b < 9:
    print(-1)
    exit()
print(a * b)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys

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

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

main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x = input().split()
A, B = [int(i) for i in x]
print(A*B)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
print(0 <= A <= 9 and 0 <= B <= 9)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

A,B = LI()

print(A*B)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
	# a,b,k = map(int,input().split())
	n,k = map(int,input().split())
	# s = int(input())
	# a = list(map(int,input().split()))
	# rsp = list(str(input()))
	# l = [list(map(int, input().split())) for _ in range(n-1)]
	# s = list(s)
 
	if n < 10 or k < 10:
		print(int(n*k))	
	else:
 		print(-1)
 
 
if __name__ == '__main__':
	main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N, M = map(int, input().split())
if 1<=N<=20 and 1<=M<=20:
  a = N*M
  print(a)
else:
  print(-1)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
x, y = [int(i) for i in input().split()]
if x and y < 10:
  print(x * y)
else:
  print(-1)

Submission status: Wrong Answer

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

if a and b in range(1, 10):
  print(a*b)
else:
  print(-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
bool1=False
#print(a,"to",b) a=21 b=1 i=3 j=7 out
if 1<=a and a<=20 and 1<=b and b<=20:
	for i in range(1,10):
		for j in range(1,10):
			#print(i)
			if i*j == a*b:
				#print("a")
				bool1=True
				#print(bool1)
				break
			else:
				#print("j={0}".format(j))
				pass
		if bool1==True:
			break
#print(bool1)
if bool1==True:
	print(a*b)
else:
	print(-1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
bool1=False
#print(a,"to",b) a=21 b=1 i=3 j=7 out
if 1<=a and a<=20 and 1<=b and b<=20:
	for i in range(10):
		for j in range(10):
			#print(i)
			if i*j == a*b:
				#print("a")
				bool1=True
				#print(bool1)
				break
			else:
				#print("j={0}".format(j))
				pass
		if bool1==True:
			break
#print(bool1)
if bool1==True:
	print(a*b)
else:
	print(-1)