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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = input()
T = input()

result = 0
for i in range(0,3):
    if S[i] == T[i]:
        result += 1

print (result)

Submission status: Runtime Error

Solution code:
def prime_factors(n):
    i = 2
    factors = 1
    while i * i <= n:
        if n % i:
            i += 1
        else:
            n //= i
            factors = i
    if n > 1:
        factors = i
    return factors
N = int(input())
large_factor = prime_factors(N)
print(int(large_factor+(N/large_factor)-2))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
flag=0
for i in range(9):
    for j in range(9):
        if (i+1)*(j+1)==N:
            flag=1

if flag==1:
    print('Yes')
else:
    print('No')

Submission status: Runtime Error

Solution code:
import numpy as np
 
a,b=map(int,input().split())
A=np.array(sorted(list(map(int,input().split()))))
F=np.array(sorted(list(map(int,input().split())),reverse=True))
 
s=A.sum()
 
x=-1
y=10**12
while x+1<y:
  mid=(x+y)//2
  if s-np.minimum(A,mid//F).sum()<=b:
    y=mid
  else:
    x=mid
print(y)

Submission status: Runtime Error

Solution code:
import os
import numpy as np

class getStdin(object):
    @classmethod
    def get_int(cls):
        return int(input())

    @classmethod
    def get_ss_int(cls):
        return list(map(float, input().split()))

    @classmethod
    def get_na_int(cls):
        return np.array(sorted(list(map(int, input().split()))))

    @classmethod
    def get_na_intr(cls):
        return np.array(sorted(list(map(int, input().split())))[::-1])


class funcCls(object):
    @classmethod
    def done(cls, a, b, x):
        import math
        mm = x / a
        if mm <= (a * b / 2):
            th = math.degrees(math.atan(b ** 2 / (2 * mm)))
        else:
            th = math.degrees(math.atan((-2*mm + 2*a*b) / a ** 2))

        return th


if __name__ == '__main__':
    a, b, x = getStdin.get_ss_int()
    y = funcCls.done(a, b, x)

    print(y)
    os.sys.exit(0)

Submission status: Runtime Error

Solution code:
import sys

N =int(input())

for a in range(1,10):
  for b in range(1,10):
    if a*b == N:
      print('yes')
      sys.exit()
print('no')

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if (A<=9) & (B<=9):
  print(A*B)
else:
  print(-1)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if A<=9 & B<=9:
  print(A*B)
else:
  print(-1)

Submission status: Runtime Error

Solution code:
A = input()
B = input()
if A<=9 & B<=9:
  print(A*B)
else:
  -1

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A=int(input("A:"))
B=int(input("B:"))
if A <=9:
    if B<=9:
        print(A*B)
    else:
        print(-1)
else:
    print(-1)

Submission status: Runtime Error

Solution code:
A=int(input("A:"))
B=int(input("B:"))
if A <9:
    if B<9:
        print(A*B)
    else:
        print(-1)
else:
    print(-1)

Submission status: Runtime Error

Solution code:
x = int(input())
y = int(input())
print(x *y);

Submission status: Runtime Error

Solution code:
n=int(input())
result=1000000000000
for i in range(n):
  nn=n/(i+1)
  if (nn.is_integer() and result>nn+i-1):
    result=nn+i-1
print(result)

Submission status: Runtime Error

Solution code:
n=int(input())
result=1000000000000
for i in range(n):
  nn=n/(i+1)
  if (nn.is_integer() and result>nn+i-1):
    result=nn+i-1
    print(nn)
    print(i+1)
print(result)

Submission status: Runtime Error

Solution code:
n=int(input())
result=100000000000000000000000000
for i in range(n):
  nn=n/(i+1)
  if (nn.is_integer() and result>nn+i-1):
    result=nn+i-1
    print(nn)
    print(i+1)
print(result)

Submission status: Runtime Error

Solution code:
n=int(input())
result=100000000000000000000000000
for i in range(n):
  nn=n/(i+1)
  if (nn.is_integer() and result>nn+i-1):
	result=nn+i-1
print(result)

Submission status: Runtime Error

Solution code:
a,b = int(input())


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

Submission status: Runtime Error

Solution code:
a,b = int(input())

c = a*b

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

Submission status: Runtime Error

Solution code:
a,b = int(input())


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

Submission status: Runtime Error

Solution code:
a,b = int(input())


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

Submission status: Runtime Error

Solution code:
a,b = int(input())


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

Submission status: Runtime Error

Solution code:
a,b = int(input())


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

Submission status: Runtime Error

Solution code:
A,B = int(input())


c = A * B


if c > 10:
    print(-1)
else:
    print(c)

Submission status: Runtime Error

Solution code:
A,B = int(input())

A = 10
B = 9

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

Submission status: Runtime Error

Solution code:
n = int(input())

def prime_decomposition(n):
    i = 2
    table = []
    while i * i <= n:
        while n % i == 0:
            n = int(n/i)
            table.append(i)
        i += 1
    if n > 1:
        table.append(n)
    return table

l = prime_decomposition(n)
l.append(1)
l.sort()
l.reverse()
a = 1
b = 1

for i in range(len(l)):
    if a <= b:
        a *= l[len(l)-1-i]
    else:
        b *= l[len(l)-1-i]

print(a+b-2)

Submission status: Runtime Error

Solution code:
N,K = map(int,input().split())
A=sorted(list(map(int,input().split())))
F=sorted(list(map(int,input().split())),reverse=True)
ok=A[-1]*F[0]
ng=-1
while(ng+1<ok):
  c=ng+(ok-ng)//2
  sum=0
  for i in range(N):
    if(A[i] - c//F[i]>=0):
      sum += A[i] - c//F[i]
  if(sum<=K):
    ok=c
  else:
    ng=c
 
print(ok)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
while(true):
  pass

Submission status: Runtime Error

Solution code:
for(;;):
  pass

Submission status: Runtime Error

Solution code:
a = int(input())
for i in range(9):
  if(a%(i+1) ==0 and a/(i+1)<=9):
    print("Yes") 
    exit()
print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N =int(input())
num = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for i in reversed(range(2, 10)):
    if N % i == 0 and int(N / i) in num:
        count = 1
        break
    else:
        count = 0
if count == 1:
    print("Yes")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
N =int(input())
num = [1, 2, 3, 4, 5, 6, 7, 8, 9]
for i in reversed(range(1, 10)):
    if N % i == 0 and int(N / i) in num:
        count = 1
        break
    else:
        count = 0
if count == 1:
    print("Yes")
else:
    print("NO")

Submission status: Runtime Error

Solution code:
n = int(input())
all = set([i * j for i range(1, 10) for j range(1, 10)])
if n in all:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
data = input(split())
A = data[0]
B = data[1]

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
A, B = int(input())
if 1<=A & A<=9 | 1<=B & B<=9:
    if 1<=A*B & A*B<=81:
        print (A*B)
    else:
        print (-1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
str = input()
data = "".split(str)
n1 = int(data[0])
n2 = int(data[1])
if (n1 >9 or n2 > 9):
    print(-1)
else:
    print(n1*n2)

Submission status: Runtime Error

Solution code:
# coding: utf-8
import sys

N = int(input())

for i in range(1,10):
  #print(N,i,N%i,len(str(int(N/i))))
  if N%i == 0 and len(str(int(N/i))) == 1:
    print('Yes')
    sys.exit()
print('No')

Submission status: Runtime Error

Solution code:
import pandas as pd

Submission status: Runtime Error

Solution code:
a=A
b=B
if 1<=a<=9:
  if 1<=b<=9:
    print(a*b)
else:
  print(-1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
if 1<=A<=9:
  if 1<=B<=9:
    print(A*B)
  elif 10<=B<=20:
    print(-1)
elif 10<=A<=20:
  print(-1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = int(input())
if a < 10 and b < 10:
  print(a＊b)
else:
  print(-1)

Submission status: Runtime Error

Solution code:
input = int(input())
chars = [i for i in range(1,10)]
for n in chars:
  if input / n in chars:
    print("Yes")
    quit()
print("No")

Submission status: Runtime Error

Solution code:
n = int(input())
c = set([])
for i in range(1,10):
  for j in range (1,10):
    c.add(i * j)
print("Yes") if n in c else print("No")

Submission status: Runtime Error

Solution code:
ygfgfuh

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
ab = input().split(" ")
a = int(ab[0])
b = int(ab[1])


def check(a,b):
	if (a>9 or b>9):
		return -1
	else
		return a*b

print(check(a,b))

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

a = int(input())
b = int(input())

print(kakezan())

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())

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

Submission status: Runtime Error

Solution code:
N = int(input())
for i in range(1,10):
  for j in range(1,10):
    if i * j == N:
      print("Yes")
print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=int(input())
for x in range(int(a**0.5),0,-1):
	if a%x==0:
     d=int(a//x)
     s=d+x-2
     break
print(s)

Submission status: Runtime Error

Solution code:
a=int(input())
for x in range(int(a**0.5),0,-1)
	if a%x==0:
    s=a+x-2
    break
print(s)

Submission status: Runtime Error

Solution code:
N = input().rsplit().split('')
N1 = N[0]
N2 = N[1]

if N1 >=10 or N2 >= 10:
  print(-1)
  
else:
  print(N1 * N2)

Submission status: Runtime Error

Solution code:
string = input()

v = string.split(" ")

if not len(v) == 2:
  return -1

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

if 0 < a < 10 and 0 < b < 10:
  return a * b

return -1

Submission status: Runtime Error

Solution code:
import sys
 
args = sys.argv
x = int(sys.argv[0])
y = int(sys.argv[1])
if x<10 and y<10:
	print(x*y)
else:
	print('-1')

Submission status: Runtime Error

Solution code:
import sys

args = sys.argv
x = int(sys.argv[1])
y = int(sys.argv[2])
if x<10 and y<10:
	print(x*y)
else:
	print('-1')

Submission status: Runtime Error

Solution code:
import sys

args = sys.argv

if(sys.argv[0]<10 && sys.argv[1]<10) {
	print(argv[0]*argv[1])
} else {
	print('-1')
}

Submission status: Runtime Error

Solution code:
N = int(input())
if N%2==0 or N%3==0 or N%5==0 or N%7==0:
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
If　[A<=9] and [B<=9]:
  print(A*B)
else:
  print("-1")

Submission status: Runtime Error

Solution code:
num = int(input())

answer = ['No']*101

for i in range(1,10):
    for j in range(1,10):
        answer[i*j]='Yes'

print(answer[num])

Submission status: Runtime Error

Solution code:
import numpy as np
N, train_max = map(int, input().split())
members = np.sort(list(map(int, input().split())))
members_sum = members.sum()
foods = np.sort(list(map(int, input().split())))[::-1]

inferenced_time_max = int(1e+6 * 1e+6)
inferenced_time_min = -1

while inferenced_time_max > inferenced_time_min + 1:
  inferenced_time = (inferenced_time_max + inferenced_time_min) // 2
  inferenced_members = np.minimum(members, inferenced_time // foods)
  if members_sum - inferenced_members.sum() <= train_max:
    inferenced_time_max = inferenced_time
  else:
    inferenced_time_min = inferenced_time

print(inferenced_time_max)

Submission status: Runtime Error

Solution code:
a = int(input())
for i in range (1,10):
    if a % i == 0 and a/i < 10:
        print('Yes')
        exit()

print('No')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = map(input().slice())
if a <= 0 or a >= 10:
  return -1
if b <= 0 or b >= 10:
  return -1
return a*b

Submission status: Runtime Error

Solution code:

A = int(input())
B = int(input())

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

Submission status: Runtime Error

Solution code:
A=variable
B=variable_2
A=1
B=1
C=A*B
while A and B <= 9;
	print(A*B)
	A=A+1
	B=B+1
print(C)

Submission status: Runtime Error

Solution code:
A=variable
B=variable_2
A=1
B=1
C=A*B
while A and B <= 9;
	print(A*B)
	A=A+1
	B=B+1
print(A*B)

Submission status: Runtime Error

Solution code:
A=variable
B=variable_2
A=1
B=1
while A and B <= 9;
	print(A*B)
	A=A+1
	B=B+1

Submission status: Runtime Error

Solution code:
A=variable
B=variable_2
A=9
B=9
if A*B=81;
	print("81")
else;
	print("-1")

Submission status: Runtime Error

Solution code:
a=variable
b=variable_2
a=9
b=9
if a*b=81;
	print("81")
else;
	print("-1")

Submission status: Runtime Error

Solution code:
a=variable
b=variable_2
a=9
b=9
if a*b=81 then;
	print("81")
else;
	print("-1")

Submission status: Runtime Error

Solution code:
a=variable
b=variable_2
a=9
b=9
if a*b=81 then;
	print("81")
else;
	print(-1)

Submission status: Runtime Error

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

inp = input().split();
a = int(inp[0])
b = int(inp[1])
print(main(a,b))

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

if A < 20:
  if B < 20:
    if 0<A:
      if 0<B:
        c = A * B
        print("{} {}".format(c))
else:
  return -1

Submission status: Runtime Error

Solution code:
A = input()
B = input()

if A < 20:
  if B < 20:
	c = A * B
    print("{} {}".format(c))
else:
  return -1

Submission status: Runtime Error

Solution code:
import math
a,b,x = map(float,input().split())

c = a/(2*b-2*x/a**2)
d = (2*x)/(a*b**2)
if x/a >= a*b/2:
  result = math.atan(c)
else:result = math.degrees(math.atan(d))
print(result)

Submission status: Runtime Error

Solution code:
import math
a,b,x = map(float,input().split())

c = a/(2*b-(2*x)/(a*a))
d = (2*x)/(a*b*b)
if x/a >= a*b/2:
  result = math.atan(c)
else:
  result = math.degrees(math.atan(d))
print(result)

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=input()
b=input()
if 0 < a < 10 and 0 < b < 10:
    print(a * b)
else:
    print(-1)

Submission status: Runtime Error

Solution code:
import math

N = int(input())
 
mi = 10**10

for a in range(int(math.sqrt(N))+1):
  if N % a == 0:
    b = N//a
    if mi > a+b-2:
      mi = a+b-2
print(mi)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if A , B <= 9 :
print ( A * B )

else:
print ( -1 )

Submission status: Runtime Error

Solution code:
if ( ( 1 <= A <= 9 ) and( ( A % 1 == 0 ) or ( A % 2 == 0 ) or ( A % 3 == 0 ) or ( A % 5 == 0 ) or ( A % 7 == 0 ) ) ) and ( ( 1 <= B <= 9 ) and( ( B % 1 == 0 ) or ( B % 2 == 0 ) or ( B % 3 == 0 ) or ( B % 5 == 0 ) or ( B % 7 == 0 ) ) ):
    print(A*B)
else:
    print ( -1 )

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# AtCoderでsympyがimportできるか

import math
import statistics
import numpy as np
import sympy as sym
import queue

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

Submission status: Runtime Error

Solution code:
import sympy as sym

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

Submission status: Runtime Error

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

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

else :
    print(-1)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())

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

else :
    print(-1)

Submission status: Runtime Error

Solution code:
A = input()
B = input()

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

else :
    print(-1)

Submission status: Runtime Error

Solution code:
i = input().split(" ")
m,n = i[0]*i[1]
if m <= 9 and m>=9 and n<=9 and n>=1:
  print(m*n)
else:
  print(-1)

Submission status: Runtime Error

Solution code:
i = input().split(" ")
m,n = i[0]*i[1]
if m < 9 and n<9:
  print(m*n)
else:
  print(-1)

Submission status: Runtime Error

Solution code:
i = input().split(" ")
mul = i[0]*i[1]
if mul < 81:
  print(mul)
else:
  print(-1)

Submission status: Runtime Error

Solution code:
n,m = input().split(" ")
mul = n*m
if mul < 81:
  print(mul)
else:
  print(-1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

if i in range(1,9):
  print(a*b)
else:
  print(-1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def check():
  n = int(input())
  if n <= 9:
    return 'Yes'
  elif n > 81:
    return 'No'
  else:
    for i in range(2, 9):
      q, mod = divmod(n, i)
      if mod == 0 and q <= 9:
        return 'Yes'
    return 'No'

print(check())

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
s = N-1
a = N
b = 1
for i in range(int(N**0.5)+1, 1, -1):
        if N%i == 0:
            a = i
            b = N//i
            s = a + b -2
            break

print(s)

Submission status: Runtime Error

Solution code:
N = int(input())
s = N-1
for i in range(1, int(N**0.5) + 1):
    for j in range(1, int(N**0.5) + 1):
        if N == i * j:
            flag = i + j - 2

            if flag <= s:
                s = flag

print(s)

Submission status: Runtime Error

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: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
if (1 <= A <= 9) & (1 <= B <= 9):
    s = A*B
    print(s)

else:
    print(-1)

Submission status: Runtime Error

Solution code:
# 問題文
# 高橋君は九九を覚えたので、1以上 9以下の 2つの整数の積を計算することができます。それ以外の計算はできません。
# 2つの整数 A, Bが与えられます。
# 高橋君が A×Bを計算できるならその結果を、できないなら代わりに -1 を出力してください。
# 制約
# 1≤A≤20
# 1≤B≤20
# 入力中のすべての値は整数である。
A = int(input())
B = int(input())
if (1 <= A <= 9) & (1 <= B <= 9):
    s = A*B
    print(s)

else:
    print(-1)

Submission status: Runtime Error

Solution code:
if ((0<A<9)&&(0<B<9)):
  return A*B
else:
  return "-1"

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a, b = map(int,input().split()) #複数の入力はmap関数

#判別＆出力
if A <= 9 and B <= 10:
  print(A * B)
else:
  print(-1)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N,K = map(int,input().split())
A = input().split()
F = input().split()
for i in range(0,N):
    A[i] = int(A[i])
    F[i] = int(F[i])
A.sort()
F.sort(reverse=True)

B = [A[i] *F[i] for i in range(0,N)]
d = max(B)

def nex(x):
    count = 0
    for i in range(0,N):
        if x < B[i]:
            count += A[i] - int(x/F[i])
    return count

def target(l,r):
    if r - l == 1:
        if nex(l) <= K:
            return l
        else:
            return r
    elif nex(int((l+r)/2)) <= K:
         return target(l,int((l+r)/2))
    else:
        return target(int((l+r)/2),r)
    
ans = target(0,d)
print(ans)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
n = int(input())
ans = 0
for i in range(2,10):
    if n % i == 0:
        if int(n/i) < 10:
            ans = 1
if ans == 0:
    print("No")
else :
    print("Yes")

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

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

Submission status: Runtime Error

Solution code:
n = int(input())
ans = 0
for i in range(2,10):
    if n % i == 0:
        if int(n/i) < 10:
            ans = 1
if ans == 0:
    print("no")
else :
    print("yes")

Submission status: Runtime Error

Solution code:
import sys
input=sys.stdin.readline  #危険！基本オフにしろ！

def main():
    n,k=map(int,input().split())
    a=sorted(map(int,input().split()))
    b=sorted(map(int,input().split()),reverse=1)
    #print(a,b)
    ok=max(a)*max(b)
    ng=-1
    
    
            
    while abs(ok-ng)>1:
        mid=(ok+ng)//2
        if sum(a[i]-mid//b[i]for i in range(n) if a[i]*b[i]>mid)<=k:
            ok=mid
        else:
            ng=mid
    print(ok)

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
n,k=map(int,input().split())

a=list(map(int,input().split()))
f=list(map(int,input().split()))
a=sorted(a)
f=sorted(f,reverse=True)

l=-1
r=10**12
def ok():
    s=0
    for i in range(n):
        s+=max(0,int(int(a[i])-int(c/f[i])))
    return s<=k

while(l+1<r):
    c=int((l+r)/2)
    if ok():
        r=c
    else:
        l=c
print(r)

Submission status: Runtime Error

Solution code:
N = int(input())

for A in range(1, 10):
    for B in range(1, 10):
        if N == A*B:
            print('Yes')
            True
            break
if False:
  print('No')

Submission status: Runtime Error

Solution code:
import numpy as np
import math

n = int(input())
x = []
for i in range(1,math.floor(math.sqrt(n))+1):
    if(n%i == 0):
        x.append(i+n/i-2-0)
print(round(min(x)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
N = int(input())
dict = {}

for i in range(1, 10):
    for j in range(i+1, 10):
        dict[i*j] = True
result = 'YES' if dict.get(N) else 'NO'
print(result)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())

for i in range(1,10):
    for j in range(1,10):
        if i * j == N:
            print("Yes")
            quit()
print("No")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if 0 < a < 10 & 0 < b < 10:
  print(a * b)
else:
  print -1

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
b = False
i=1
while i<=9:
    j=1
    while j<=i:
        if j*i==n:
            print('Yes')
            b = True
            break
		j+=1
    if j*i>n:
        break
    i+=1
if b==False:
    print('No')

Submission status: Runtime Error

Solution code:
x, y = map(int, raw_input().split())
if(x>=1and x<=9) or (y>=1 and y<=9):
	print(x*y)
else:
	print("-1")