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

Submission status: Wrong Answer

Solution code:
a, b = list(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())

#print(str(a)+','+ str(b))

c = a * b

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

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
print(i[0]*i[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())
if 1 > a or a > 20:
    raise ValueError("invalid number")
    
if 1 > b or b > 20:
    raise ValueError("invalid number")

if a <= 0 or a >= 10:
     print("-1")
if b <= 0 or b >= 10:
    print("-1")
print("{}".format(a*b))

Submission status: Wrong Answer

Solution code:
A = [int(x) for x in input().split()]
a=A[0]
b=A[1]
if a>9 | b>9:
    print(-1)
else:
    print(a*b)

Submission status: Wrong Answer

Solution code:
import sys
 
input = sys.stdin.readline().split()
result = 1
for n in input:
  n=int(n)
  if n<10:
    result = result * n
    
  else:
    print('-1')
print(result)

Submission status: Wrong Answer

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

#複数入力
n,m=(int(x) for x in input().split())
l=[_ for _ in range(1,11)]
if n not in l or m not in l:
    print(-1)
else :
    print(n*m)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if (a > 0 and a <10) and (b > 0 and b <10):
    print(a*b)

Submission status: Wrong Answer

Solution code:
AB = input().split()
A = float(AB[0])
B = float(AB[1])

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

else :
    print(-1)

Submission status: Wrong Answer

Solution code:
AB = input().split()
A = float(AB[0])
B = float(AB[1])

if 1 <= A <= 20 and 1 <= B <= 20 :
    print(A * B)

else :
    print(-1)

Submission status: Wrong Answer

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

if 1 <= A <= 20 and 1 <= B <= 20 :
    print(A * B)

else :
    print(-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n,m=map(str,input().split())
if(len(n)<10 and len(m)<10):
	print(int(n)*int(m))
else:
	print(-1)

Submission status: Wrong Answer

Solution code:
n,m=map(str,input().split())
if(len(n)==len(m)==1):
	print(int(n)*int(m))
elif(len(m)>1):
	print(-1)
else:
	n=n[::-1]
	ans=""
	a=0
	for i in range(len(n)-1):
		if(int(n[i])*int(m)>9):
			# ans=-1
			a=-1
			break
		else:
			ans=str(int(n[i])*int(m)) + ans
	ans=str(int(n[-1])*int(m))+ans
	if(a==-1):
		print(-1)
	else:
		print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
print("a:{},b:{}".format(a,b))
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 0<a<10:
  if 0<b<10:
    print(a*b)
else:
  print(-1)

Submission status: Wrong Answer

Solution code:
A, B = [i if i<10 else -1 for i in map(int, input().split())]
print(A*B if A*B>0 else -1)

Submission status: Wrong Answer

Solution code:
A, B = [i if i<10 else -i for i in map(int,input().split())]
print(A*B if A*B>0 else -1)

Submission status: Wrong Answer

Solution code:
A, B = [int(i) for i in input().split()]
List_9 = []
for i in range(1, 10):
    for j in range(1, 10):
        List_9.append(i * j)
        
if A * B in List_9:
    print(A * B)
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
def calc(A,B):
  if A < 10 and B < 10:
    print(A * B)
  else:
    print(-1)

Submission status: Wrong Answer

Solution code:
A, B = map(int,input().split()) #複数の入力はmap関数
 
#判別＆出力
if A <= 9 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())
if 1 <= A and A <= 9:
    if 1 <= B and B <= 9:
        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())
if 0 < a < 10 & 0 < b < 10:
  print(a*b)
else:
  print(-1)

Submission status: Wrong Answer

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

if a > 10:
    print('-1')
elif b > 10:
    print('-1')
else:
    print(r)

Submission status: Wrong Answer

Solution code:
a,_,b,*c=input();print(-len(c)or int(a)*int(b))

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=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())
print(A*B if A*B<82 else -1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num = input().rstrip().split(" ")
print(int(num[0])*int(num[1]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
string = input("输入A和B:\n")
A, B = map(int, string.split())
num_range = {"start":0,"end":20}

if(1<= A <= 9 and 1<= B <= 9):
    product = A * B
    print('%d*%d=%-2d'%(A,B,product))
else:
    print("-1")

Submission status: Wrong Answer

Solution code:

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

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

Submission status: Wrong Answer

Solution code:
str = input().rstrip().split(" ")
print(int(str[0]) * int(str[1]))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

n=a*b
ans = 'No'
for i in range(1,10):
    for j in range(1,10):
        if n == i*j:
            ans = 'Yes'

print(ans)

Submission status: Wrong Answer

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

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = list(map(int,input().split()))
if a[0] >= 10 or a[1] >= 10:
  print('-1')
else:
  print('a[0] * a[1]')

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys

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

    out = A*B

    if 1 <= out <= 81:
        print(out)
    else:
        print(-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = str(input())
list = [1,2,3,4,5,6,7,8,9,10,12,14,16,18,15,21,24,27,20,28,32,36,25,35,40,45,30,42,48,54,49,56,63,64,72,81]
for N in list:
  print("Yes")
else:
  print("NO")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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())
x = A*B
if(1 <= x and x <= 81):
  print(x)
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 == 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9:
  print(a * b)
else:
  print('-1')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num = [ int(v) for v in input().split() ]
print( "Yes" if all([ 1 <= i < 10 for i in num ]) else "No" )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

number = input().split(" ")
    


if int(number[0]) <= 9 & int(number[1]) <= 9:
    print(int(number[0]) * int(number[1]))
else:
    print(-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
inp=input().split()
A=int(inp[0])
B=int(inp[1])
if A < 10 or B < 10:
  print(str(A*B))
else:
  print("-1")

Submission status: Wrong Answer

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

print(C)

Submission status: Wrong Answer

Solution code:
import sys
a, b = map(int, input().split())
if a in range(1,9):
 if b in range(1,9):
  print(a*b)
  sys.exit()
 else:
  pass
print("-1")

Submission status: Wrong Answer

Solution code:
import sys

A, B = [int(x) for x in sys.stdin.readline().rstrip().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())
r = a*b
for i in range(1, 10):
  if r % i == 0 and 1 <= r//i <= 9:
    print(r)
    quit()
print(-1)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N,M=map(int,input().split())

if N*M<=81:
    print(N*M)
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
a, b = (int(x) for x in 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 and A <= 9:
    if 1 <= B and B <= 9:
        print(A*B)
else:
    print('-1')

Submission status: Wrong Answer

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

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

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)
      quit()
print(-1)

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
ans = x * y
if ans < 82:
    print(ans)
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 or b >= 10:
    print(-1)
else:
    print(a*b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from collections import *
from math import *
n,p = map(int,input().split())
if(n >= 9 and p >= 9):
    print(n*p)
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
# coding: utf-8


a, b = input().split()
print(int(a)*int(b))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

qA, modA = divmod(A, 10)
qB, modB = divmod(B, 10)

if modA == 0 or modB == 0:
  print(-1)
else:
  print(A*B)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if i[0] >= 10 or i[0] >= 10:
    ans = -1
else:
    ans = i[0] * i[1]

print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:

from sys import stdin

A, B = [int(x) for x in stdin.readline().rstrip().split()]
ans = A*B
if ans<1 or ans>81:
    ans = -1

print(ans)

Submission status: Wrong Answer

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

list_aaa = [1,2,3,4,5,6,7,8,9]

ans = 0

for i in list_aaa:
    if A == i or B == i:
        ans = 1
    else:
        ans = 2

if ans ==1:
    print(A*B)
else:
    print('-1')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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] = list(map(int, input().split()))
N = [i for i in range(1, 9)]
if A in N and B in N:
    print(A*B)
else:
    print(-1)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
AB = input().split(' ')
A = int(AB[0])
B = int(AB[1])
print(A*B)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
print(x * y)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
A, B = list(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())
ans = a*b

for i in range(1, 10):
    for j in range(1, 10):
        if ans == i*j:
            print(ans)
            exit()
print(-1)

Submission status: Wrong Answer

Solution code:
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy,copy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

def main():
    a, b = MAP()
    print(a*b)

if  __name__=='__main__':
    main()

Submission status: Wrong Answer

Solution code:
print(9 * 9)

Submission status: Wrong Answer

Solution code:
def resolve():
    a, b = map(int, input().split())
    print("Yes" if a < 10 and b < 10 else "No")


if __name__ == '__main__':
    resolve()

Submission status: Time Limit Exceeded

Solution code:
while(True):
  pass

Submission status: Time Limit Exceeded

Solution code:
while True:
  a=0

Submission status: Time Limit Exceeded

Solution code:
import sys
import itertools
import numpy as np

def make_divisors(n):
  divisors = []
  for i in range(1, int(n**0.5)+1):
    if n % i == 0:
      divisors.append(i)
      if i != n // i:
        divisors.append(n//i)
  return divisors
def abc(n):
  b = 2
  fct = [0]
  while b * b <= n:
    while n % b == 0:
      n //= b
      fct.append(b)
    b = b + 1
  if n > 1:
    fct.append(n)
  return fct
def getNearestValue(list, num):
  idx = np.abs(np.asarray(list) - num).argmin()
  return list[idx]
for n in range(2,10**12):
  list_ = abc(n)

  list_.sort()
  tmp = np.sqrt(n)
  N = len(list_)

  dp = [[1 for i in range(N+1)] for j in range(N+1)]

  for i in range(N):
    for j in range(1,N):
      if i == j:
          continue
      else:
        if dp[i][j-1] * list_[j] <= tmp:
          dp[i][j] = dp[i][j-1] * list_[j]
        else:
          continue
  tmplist = list(itertools.chain.from_iterable(dp))

  tmp1 = max(tmplist)
  if tmp1 == 0:
    print(n-1)
    sys.exit()
    
    
  tmp2 = make_divisors(n)
  tmp2.sort()
  sq = np.sqrt(n)
  tmpnum = n
  for i in tmp2:
    if i > sq:
      break
    else:
      tmpnum = min(tmpnum-1, n//i + i - 2)
    
  if (tmp1 - 1)+(n//tmp1-1) != tmpnum:
    print(n)

Submission status: Accepted

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

Submission status: Accepted

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

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

else:
    print("-1")

Submission status: Accepted

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

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

else:
    print(A * B)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=(int(x) for x in input().split())

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#144-A

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

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

else:
    print(-1)

Submission status: Accepted

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

Submission status: Accepted

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


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

mult(a,b)