Problem:


Score : 100 points

Problem Statement

Compute A \times B.

Constraints

1 \leq A \leq 100

1 \leq B \leq 100

All values in input are integers.

Input

Input is given from Standard Input in the following format:

A B

Output

Print the value A \times B as an integer.

Sample Input 1

2 5

Sample Output 1

10

We have 2 \times 5 = 10.

Sample Input 2

100 100

Sample Output 2

10000



Sample input:
2 5


Sample output:
10

Submission status: Runtime Error

Solution code:
n = input()
answer = 1
for i in range(int(n)):
    a = int(input())
    answer = answer * a
    if answer > 10**18:
        print("-1")
        break
print(answer)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
i=1
while A[0]<=10**18 and i<=N-1:
   A[0]*=A[i]
   i+=1
if A[0]>10**18:
   A[0]=-1
print(A[0])

Submission status: Runtime Error

Solution code:
n = input()
answer = 1
for i in range(int(n)):
    a = int(input())
    answer = answer * a
    if answer > 10**18:
        print("-1")
    else:
        print(answer)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
C = int(A * B)
print(C)

Submission status: Runtime Error

Solution code:
N = int(input())
A = input().split()
answer = 1
flag = 0
x = 10**18

if '0' in A:
  print(0)
  flag = 1
  
for i in range(N):
  answer *= int(A[i])
  if answer > x:
    print(-1)
    flag = 1
    break

if flag == 0:
  print(answer)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
i=1
while A[0]<=10**18 and i<=N-1:
   A[0]*=A[i]
   i+=1
if A[0]>10**18:
   A[0]=-1
print(A[0])

import gc
gc.collect()

Submission status: Runtime Error

Solution code:
import math
import numpy as np

n = input()
answer = 1
for i in range(int(n)):
    a = int(input())
    answer = answer * a
    if answer > 10**18:
        print("-1")
    else:
        print(answer)

Submission status: Runtime Error

Solution code:
n=int(input())
ans=0
r=int(n**0.5)+1
for i in range(2,r):
    if n%i==0:
        ans+=1
        n/=i
if ans==0 and not n==0:
    ans=1
print(ans)

Submission status: Runtime Error

Solution code:
N=int(input())
A=list(map(int,input().split()))
ans=1
for i in range(N):
  ans*=A[i]
if ans<=10**18:
  print(ans)
else:
  print(-1)

Submission status: Runtime Error

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

print(input_num[0]*input_num[1])

Submission status: Runtime Error

Solution code:
a=int(input())
li = list(map(int,input().split()))
 
n=1
for i in li:
	n=n*i
	if(n>1000000000000000000):
		n=-1
		break
print(n)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int,input().split()))
ans = 1

check = True
zero = False

for i in a:
    ans = ans*i

    if i==0:
        zero = True
        break;

    if ans>1000000000000000000:
        check = False
        break;




if zero:
    print(0)
else:
    if check:
        print(ans)
    else:
        print(-1)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
B = 1
for i in range(N):
    B = B * A[i]
    if B > 10 ** 18:
        print(-1)
        break
print(B)

Submission status: Runtime Error

Solution code:
import numpy as np

n = int(input())
a = list(map(int ,input().split()))
p = np.prod(a)
if len(p)>=19:
    print(-1)
else:
    print(p)

Submission status: Runtime Error

Solution code:
a = int(input())

b = int(input())

print(a*b)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
x = 1
for i in range(n):
  x *= a[i] 
if x > 1000000000000000001:
  x = -1
print(x)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
 
def input():
    return sys.stdin.readline().strip()
 
n = int(input())
A = list(map(int, input().split()))
sum = 1
for i in range(n):
    sum *= A[i]
if(sum > 10**18):
    sum = -1
print(sum)

Submission status: Runtime Error

Solution code:
import math
A = int(input())
B = int(input())
C = int(A * B)
print(C)

Submission status: Runtime Error

Solution code:
if(1<=a<=100 || 1<=b<=100)
	a = int(input())
	b = int(input())
	print(a*b)
else
	print("invail")

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
print(str(a * b))

Submission status: Runtime Error

Solution code:
if(1<=a<=100 || 1<=b<=100)
	int(a) = input()
	int(b) = input()
	print(a*b)
else
	print("invail")

Submission status: Runtime Error

Solution code:
import numpy as np
N = int(input())
num = np.array(list(map(int,input().split())))

a = np.prod(num)
if a> 10**18:
  a=-1
print(a)

Submission status: Runtime Error

Solution code:
N = input()
A = list(map(int, input().split()))
A.sort()
ans = 1
for i in A:

    ans = ans * i
    if ans == 0:
        break
    if ans > 1000000000000000000:
        ans = -1
        break


print(ans)

Submission status: Runtime Error

Solution code:
import numpy as np
a = int(input())
b = np.array(list(map(int, input().split())))
b = np.prod(b)
if b > 10**18:
    print(-1)
else:print(b)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
import numpy as np
B = np.prod(A)
if B <= 10 ** 18:
    print(B)
else:
    print(-1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = a * b
print(c)

Submission status: Runtime Error

Solution code:
import numpy as np
N = int(input())
L = list(map(int, input().split()))
L = np.array(L)

ans = L.prod()
if (ans > pow(10,18)):
    print(-1)
else:
    print(ans)

Submission status: Runtime Error

Solution code:
import numpy as np
a = int(input())
b = np.array(list(map(int, input().split())))
b = np.prod(b)
if b >= 10**18:
    print(-1)
else:print(b)

Submission status: Runtime Error

Solution code:
N = int(input())
s = list(map(int,input().split()))
 
t = 1
for i in range(N):
    t = t * s[i]
 
if( t > 10**18):
    print(-1)
else:
    print(t)

Submission status: Runtime Error

Solution code:
import numpy as np


def count(a):
    i = 0
    while a > 0:
        i += 1
        a -= i
        if a == 0:
            break
        if a < 0:
            i -= 1
            break
    return i


def main(N):
    num = N
    ans = 0
    A = np.zeros((1000000), np.int32)
    i = 2
    last = 0
    if N == 1:
        return 0
    while True:
        if num % i == 0:
            num = num//i
            A[i] += 1
        else:
            i += 1
            if num == 1:
                break
            if i*i > num:
                last = 1
                break
    for j in range(i):
        ans += count(A[j])
    ans += last
    return ans


N = int(input())
print(main(N))

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
f = 1


for i in range(n):
    if 0 in a:
        f = 0
        break
    else:
        f *= a[i]
    
if f <= 10**18:
    print(f)
else:
    print(-1)

Submission status: Runtime Error

Solution code:
import functools
import operator
n = int(input())
number = map(int,input().split())
X = functools.partial(functools.reduce, operator.mul)
s=X(number)
if s>=pow(10,18):
    print(-1)
else:
    print(s)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
C = A * B
print(C)

Submission status: Runtime Error

Solution code:
import functools
import operator
n = int(input())
a = list(map(int, input().split()))

ans = functools.reduce(operator.mul, a)
if ans > 10 ** 18:
    print('-1')
else:
    print(ans)

Submission status: Runtime Error

Solution code:
from itertools import accumulate

N = int(input())
tu = tuple(map(int,input().split()))

p = list(accumulate(tu))[N-1]

if p > 1000000000000000000:
    print(-1)

else:
    print(p)

Submission status: Runtime Error

Solution code:
import sys
import functools
import operator

L = []
for l in sys.stdin:
  L.append(l) 
A = list(map(int, L[1].split()))

answer = functools.reduce(operator.mul, A)
if answer <= 1000000000000000000:
  print(answer)
else:
  print(-1)

Submission status: Runtime Error

Solution code:
import sys
import functools
import operator

L = []
for l in sys.stdin:
  L.append(l) 
  A = list(map(int, L[1].split()))

answer = functools.reduce(operator.mul, A)
if answer <= 1000000000000000000:
  print(answer)
else:
  print(-1)

Submission status: Runtime Error

Solution code:
a,b = int(input())
if 1 <= a <=100 and 1 <= b <= 100
     print(a*b)

Submission status: Runtime Error

Solution code:
N = int(input())
A = input().split()
answer = 1
flag = 0
x = 10**18
for i in range(N):
  A[i] = int(A[i])
  answer *= A[i]
  if answer == 0:
    break

check = answer/x
if ((check) >= 1) and (answer != x):
  print(-1)
else:
  print(answer)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k=int(input())
mal=1
a=[]      
for i in range(1,k+1):
      n=int(input())
      a.append(n)      
for i in range(0,len(a)):
            mal=mal*a[i]
if(mal<=10**18):
    print(mal)
else:
    print(-1)

Submission status: Runtime Error

Solution code:
import numpy as np

_ = input()
data = list(map(int, input().split()))
p = np.prod(data)

if 10 ** 18 < p:
  print(-1)
else:
  print(p)

Submission status: Runtime Error

Solution code:
n = int(input())
ls = list(map(int, input().split()))
res = 1
if 0 in ls:
    print(0)
    quit()
for x in ls:
    res *= x
    if res > 10**18:
        print(-1)
        quit()
print(res)

Submission status: Runtime Error

Solution code:
a,b = int(input())
Z = a*b:
  print(Z)

Submission status: Runtime Error

Solution code:
a=[input() for i in range(2)]

a_num=a[1]
a_num=a_num.split()
a_list=[int(n) for n in a_num]

a_mul=1

for i in a_list:
	a_mul*=i

if a_mul>10**18:
	a_mul=-1

print(a_mul)

Submission status: Runtime Error

Solution code:
a = input()
b= input()
print(a*b)

Submission status: Runtime Error

Solution code:
n = int(input())
arr = list(map(int,input().split()))
mul = eval('*'.join([str(n) for n in arr]))
print("-1" if mul > (10**18) else mul)

Submission status: Runtime Error

Solution code:
a=[input() for i in range(2)]

a_num=a[1]
a_num=a_num.split()
a_list=[int(n) n in a_num]

a_mul=1

for i in a_list:
	a_mul*=i

if a_mul>10**18:
	a_mul=-1

print(a_mul)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
a.sort(reverse = True)
res = 1
check = 10**18
if 0 in a:
    print(0)
else:
    for i in range(n):
        res *= a[i]
        if res > check:
            res = -1
            break
    print(res)

Submission status: Runtime Error

Solution code:
import math
a,b = int(input())
Z = a*b:
  print(Z)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from operator import mul
from functools import reduce
 
n = int(input())
lis = list(map(int, input().split()))
 
ans = reduce(mul, lis)
 
if ans > 10**18:
    print("-1")
else:
    print(ans)

Submission status: Runtime Error

Solution code:
A,B = map(int(input()))
res = A*B
print("multiplication of A and B is ", A*B)

Submission status: Runtime Error

Solution code:
from operator import mul
from functools import reduce

n = int(input().rstrip())
nums = map(int,input().rstrip().split(' '))

print(reduce(mul, nums))

Submission status: Runtime Error

Solution code:
a = input()
 = input()
print(a* )

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
A = [int(i) for i in input().split()]
a = np.array(A)
sum = np.prod(a)

if  sum > 10 ** 18:
    print(-1)
else:
    print(sum)

Submission status: Runtime Error

Solution code:
a,b = int(input())
Z = a * b:
  print(Z)

Submission status: Runtime Error

Solution code:
N = int(input())
A = map(int, input().split())
if N > len(A):
  print(0)
else:
  tmp = 1
  for i in range(N):
    tmp *= A[i]
  if np.log(tmp) > 18:
    print(tmp)
  else:
    print(-1)

Submission status: Runtime Error

Solution code:
n = int(input())

sum = 0
i = 0

for i in range(n+1):
  x = int(input())
  sum *= x
  i += 1
  
  if sum > 10 ** 18:
    print(-1)
    break
    
print(sum)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
N = int(input())
A = list(map(int, input().split()))
 
ans = 1

if A.count(0) != 0:
    print(0)
    sys.exit()

for i in A:

    ans = ans*i
    if ans > int(10**18):
        print(-1)
        sys.exit()
 
if ans > int(10**18):
    print(-1)
else:
    print(ans)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
ans=a*b
print(ans)

Submission status: Runtime Error

Solution code:
import numpy
n = int(input())
# for i in range(n):
#     m = int(input())
#     k = k*m
# op = 1
p = list(map(int,input().split()))
# for i in p:
#     op = op*i
op = numpy.prod(p)
if op > 10**18:
    print(-1)
else:
    print(op)

Submission status: Runtime Error

Solution code:
def multiplication(A, B):
  return A*B
print(multiplication(input(), input()))

Submission status: Runtime Error

Solution code:
N = int(input())
A = (int(x) for x in input().split())
sum  = 1
for i in A:
    sum = sum * i
if(sum > (10**18)):
    print(-1)
else:
    print(sum)

Submission status: Runtime Error

Solution code:
#intの場合
N = int(input()) #ここで標準入力

#List にしたい時
#intの場合
huga = list(map(long, input().split()))
ans = 1
flg = 0
for number in huga:
    ans = ans * number
    if ans > 10**18:
        flg = 1
        break

if flg == 0:
    print(ans)
else:
    print('-1')

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def prime_factorize(n):
    c = 0
    while n % 2 == 0:
        c += 1
        n //= 2
    f = 3
    while f * f <= n:
        if n % f == 0:
            c += 1
            n //= f
        else:
            f += 2
    if n != 1:
        c += 1
    return c
  
print(prime_factorize(int(input())))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input()) #1行目のNを取得する
i = list(map(int, input().split()))

result = 1
flag = 0
for x in range(N):
  result *= i[x]
  if(result>pow(10,18)):
    result = -1
    flag = 1
    break

if(flag==0):
  print(result)
else:
  print('-1')

Submission status: Runtime Error

Solution code:
A, B=map(input())
res = A*B
print(res)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
print(str(A*B))

Submission status: Runtime Error

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

ans = 1

for i in range(n):
    ans *= a[i]
    if ans = 0:
        print(0)
        exit()
    elif ans > 10**18:
        print(-1)
        exit()

print(ans)

Submission status: Runtime Error

Solution code:
import sys
L = []
for l in sys.stdin:
  L.append(l)
N = int(L[0])
A = list(map(int, L[1].split()))

answer = 1
for a in A:
  answer = answer * a
  if answer > 1000000000000000000:
    print(-1)
    break
if answer <= 1000000000000000000:
  print(answer)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
AB = A * B
print(int(AB))

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
PI = 1
for i in range(N):
    PI = PI*A[i]
if PI > 10**(18):
    print(-1)
print(PI)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b = input()
Z = a*b:
  print(Z)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

x = 1

y = 1000000000000000000

for i in A:
  x = x*i  

if (x>y):
    print(-1)
else:
    print(x)

Submission status: Runtime Error

Solution code:
a,b = int(input())
Z = a*b
print(Z)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
AB = A * B
print(AB)

Submission status: Runtime Error

Solution code:

in_d = input()
n = int(in_d)

a = [int(i) for i in input().split()]

result = 0
if 0 in a:
    print(0)
else:
    result = 1
    limit = 10 ** 18
    over = 0
    a.sort()
    for v in a:
        result *= v
        if result > limit:
            over = 1
            break
    if over == 1:
        print(-1)
    else:
        print(result)

Submission status: Runtime Error

Solution code:
import math

n = int(input())
newpatient = 1
total = 1
for i in range(0, n):
    x = int(input())
    total*=x

if(total>1000000000000000000):
    total=-1;
print(total)

Submission status: Runtime Error

Solution code:
import numpy as np

n = input()

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

res = np.prod(a)

if res > 10**18 :
    print('-1')

else:
    print(res)

Submission status: Runtime Error

Solution code:
i = list(map(int, input().split()))
C = i[0]*i[1]
print(c)

Submission status: Runtime Error

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

print(a*b)

Submission status: Runtime Error

Solution code:
a,b = int(input())
Z = a*b:
  print(Z)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=input();
N=int(N);
A=input().split();
print(A);
A = [int(s) for s in A];
sum =1;
if 0 in A:
  print(0);
  return
for i in range(N):
  if(A[i]==0):
    sum=0;
    break;
  sum=sum*A[i];
  #print(sum);
if sum> (10**18):
  sum=-1;
print(sum);

Submission status: Runtime Error

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

x = 1


for i in A:
  x = x*i  

if (x<=1000000000000000000) :
    print(x)
else:
    print(-1)

Submission status: Runtime Error

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


for i in range(N):
 if(i == 0): ans = A[i]
 else: ans = ans*A[i]
  
ans = '{:.19g}'.format(ans)  
if((len(ans)>=2)and(ans[1] == 'e')):
  print('-1')
else:
  print(ans)

Submission status: Runtime Error

Solution code:
N=int(input())
while True:
    try:
        listA=list(map(int,input().split()))
        #listA<-[1,2,2,3,1]
        #ここに逐次処理を書けばいいと思う。
    except:
        break;

product=1
for i in listA:
  if product<10**18+1:
  	product=product*i
    
if listA.count(0)>0:
  print(0)
    
elif product<10**18+1:
  print(product)
  
elif product>=10**18+1:
  print(-1)

Submission status: Runtime Error

Solution code:
a=int(input())
b=input().split(' ')
m=0
s=1
while m<a:
    s=s*int(b[m])
    m=m+1
    if s>10**18:
        print(-1)
        break

else:
    print(s)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input().split()
s[0] * s[1]

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if 1<=a<=100 and 1<=b<=100:
  return a*b

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

x = 1


for i in A:
  x = x*i  

if (x>1000000000000000000) :
    print(-1)
else:
    print(x)

Submission status: Runtime Error

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

Ans=1

for A in range(N):
    NewAns=Ans*As[A]
    Ans=NewAns
if Ans>10**18:
    Ans=-1

print(Ans)

Submission status: Runtime Error

Solution code:
n=int(input())
ans=1
a=list(map(int,input().split()))
for i in range(n):
    ans*=a[i]
    if 0 in a:
        ans=0
        break
    if n>70:
        ans=-1
        break
    if ans>1000000000000000000:
        ans=-1
        break
print(ans)

Submission status: Runtime Error

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

res = 1
for i in a:
    res *= i

if res > 10**18:
    print(-1)
else:
    print(res)

Submission status: Runtime Error

Solution code:


n=int(input())
a=list(map(int,input().split()))
ans=1
for i in range(len(a)):
    ans*=a[i]
if ans > 10**18:
    print(-1)
else:
    print(ans)

Submission status: Runtime Error

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

print(a*b)

Submission status: Runtime Error

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

ans = 1
if 0 in int_list:
  ans = 0
else:
  for i in range(n):
    ans *= int_list[i]
    if ans > 10 ** 18:
      ans = -1
      break

print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
ans = 1
A = list(map(int,input().split()))
for x in A:
  if x == 0:
    print(0)
    exit(0)
  ans *= x
  if ans > 10**18:
    print(-1)
    exit(0)
print(ans)

Submission status: Runtime Error

Solution code:
import sys

N = int(input())
nums = list(map(int, input().split(' ')))

output = 1

if 0 in nums:
  print(0)
  sys.exit()
  
else:
  for x in nums:
    output *= x

    if output > 10**18:
      print(-1)
      sys.exit()

  print(output)

Submission status: Runtime Error

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

x = 1


for i in A:
  x = x*i  
y = 10**18
if (x>y) :
    print(-1)
else:
    print(x)

Submission status: Runtime Error

Solution code:
A = int(input("A="))
B = int(input("B="))
if 1 <= A <=100 and 1 <= B <=100:
    c = A * B
    print(c)
else:
    print("Error")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

N = int(input())
nums = list(map(int, input().split(' ')))

output = 1

if 0 in nums:
  print(0)
  sys.exit()
  
else:
  for x in nums:
    output *= x

    if output > 10**18:
      print('-1')
      sys.exit()

  print(output)

Submission status: Runtime Error

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

a_sorted=sorted(a)
ans = 1

if a_sorted[len(a_sorted)-1] == 0:
  ans = 0
else:
  for i in range(len(a_sorted)):
    ans = ans * a_sorted[i]
    if ans > 1000000000000000000:
      ans = -1
      break

print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
lim = 10**18
ans,exc = 1,False
for x in input().split():
  ans *= int(x)
  if ans > lim:
    exc = True
    print("-1")
if not exc:
  print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
answer = 1
 
for i in range(N):
    answer = answer*A[i]
 
if answer>10**18:
    print(-1)
else:
    print(answer)

Submission status: Runtime Error

Solution code:
# your code goes here
from sys import stdin, stdout
n = int(stdin.readline())
a = stdin.readline().split()
res = 1
can = 0
for e in range(n):
	res *= int(a[e])
    if res > 1000000000000000000:
      break
if res > 1000000000000000000:
	print(-1)
else:
	print(res)

Submission status: Runtime Error

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

x = 1
y = 10**18

for i in A:
  x = x*i  

if (x>y) :
    print(-1)
else:
    print(x)

Submission status: Runtime Error

Solution code:
n = int(input())
a = input().split(" ")

sum = 1
for i in range(n):
  sum = sum * int(a[i])

if sum > 1000000000000000000:
  print(-1)
else:
  print(sum)

Submission status: Runtime Error

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


def main():
    limit = 10**18
    N = int(input())
    A = list(map(int, input().split()))
    assert N == len(A)
    answer = 1
    for i in A:
        answer *= i
        if answer > limit:
            print("-1")
            exit()
        elif answer == 0:
            print(answer)
            exit()
    print(answer)


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
A = int(input())
A =int(A)
B = int(input())
B = int(B)
AB = A*B
print(AB)

Submission status: Runtime Error

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

print(A*B)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
A = input().split()
for i in range(len(A)):
    A[i] = int(A[i])
A.sort()

answer = A[0]
overl = False

for i in range(N-1):
    answer *= A[i+1]
    if answer > 10**18:
        overl = True
        break

if overl:
    print("-1")
else:
    print(answer)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=int(input())
li = list(map(int,input().split()))
 
result = 1
for num in li:
  result = result * num
  if result > 10 ** 18:
    print(-1)
    
print(result)

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
if int(a), int(b) in range(1, 100):
    print(a*b)

Submission status: Runtime Error

Solution code:
for i,j in range(1,101):
  print(i*j)

Submission status: Runtime Error

Solution code:
a,b = int(input())
r = a * b
print(r)

Submission status: Runtime Error

Solution code:
n = int(input())
a = input().split(" ")

sum = 1
for i in range(n):
  sum = sum * int(a[i])

if sum > 1000000000000000000 :
  print(-1)
else:
  print(sum)

Submission status: Runtime Error

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

result = a * b
print(result)

Submission status: Runtime Error

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

ans=1
for i in range(N):
    ans *= num[i]
    if ans > 10**18:
        ans=-1
print(ans)

Submission status: Runtime Error

Solution code:
N = int(input()) 
result = 1

for n in range(N):
  A = int(input())
  if A == 0:
    result = 0
    break
  result = result*A
  if result>1000000000000000000:
    result = -1
    break

print(result)

Submission status: Runtime Error

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

result = a * c
print(result)

Submission status: Runtime Error

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

result = 1
for num in li:
  result = result * num
  if result > 10 ** 18:
    print(-1)
    
print(result)

Submission status: Runtime Error

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

print(A*B)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
AB = A*B
print(int(AB))

Submission status: Runtime Error

Solution code:
A,B=input().strip().split()
if A>=1 and A<=100 and B>=1 and B<=100:
    A*B

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = str(input())
d = s.split()
mod = 10 ** 18
ans = int(d[0])
d.pop(0)
z = 0
if '0' in d:
	print(0)
else:
	for i in d:
		i = int(i)
		ans *= i
		if ans > mod:
			print(-1)
			z = 1
	if z == 1:
		pass
	else:
		print(ans)

Submission status: Runtime Error

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

print(A*B)

Submission status: Runtime Error

Solution code:
print(int(int(input())*int(input())))

Submission status: Runtime Error

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

print(int(A*B))

Submission status: Runtime Error

Solution code:
for i,j in [[1:100],[1:100]]:
  print(i*j)

Submission status: Runtime Error

Solution code:
A = int(input())
B = int(input())
AB = A*B
print(AB)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
A = int(input())
B = int(input())
print(math.floor((A * B)))

Submission status: Runtime Error

Solution code:
n = input()
n = int(n)

val_list = input().split()
answer = 0
for i, val in enumerate(val_list):
    if i == 0:
        answer = int(val)
    else:
        answer = answer * int(val)

if answer > 10 ** 18:
    print(-1)
else:
    print(answer)

Submission status: Runtime Error

Solution code:
n = input()
l = [int(e) for e in input().split(" ")]
res = 1
for e in l:
    res = res*e
if res > 1e+18:
    print("-1")
else:
    print(res)

Submission status: Runtime Error

Solution code:
A=input()
B=input()
a=int(A)
b=int(B)
x=a*b
print(x)

Submission status: Runtime Error

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

C = A*B

print(C)

Submission status: Runtime Error

Solution code:
#define _CRT_SECURE_NO_WARNINGS
#pragma target("avx")
#pragma optimize("O3")
#pragma optimize("unroll-loops")
#include <algorithm>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <memory>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#define rep(i,n) for(int i=0;i<(lint)(n);i++)
#define REP(i,n) for(int i=1;i<=(lint)(n);i++)
#define all(V) V.begin(),V.end()
#define lint long long
typedef std::pair<lint, lint> P;
constexpr int INF = INT_MAX/2;
constexpr lint LINF = LLONG_MAX/2;
constexpr double eps = 1e-9;
constexpr double PI=3.141592653589793238462643383279;
template<class T>
class prique :public std::priority_queue<T, std::vector<T>, std::greater<T>> {};
template <class T, class U>
inline bool chmax(T& lhs, const U& rhs) {
	if (lhs < rhs) {
		lhs = rhs;
		return 1;
	}
	return 0;
}
template <class T, class U>
inline bool chmin(T& lhs, const U& rhs) {
	if (lhs > rhs) {
		lhs = rhs;
		return 1;
	}
	return 0;
}
inline lint gcd(lint a, lint b) {
	while (b) {
		lint c = a;
		a = b; b = c % b;
	}
	return a;
}
inline lint lcm(lint a, lint b) {
	return a / gcd(a, b) * b;
}
bool isprime(lint n) {
	if (n == 1)return false;
	for (int i = 2; i * i <= n; i++) {
		if (n % i == 0)return false;
	}
	return true;
}
template<typename T>
T mypow(T a, unsigned int b) {
	if (!b)return T(1);
	if (b & 1)return mypow(a, b - 1) * a;
	T memo = mypow(a, b >> 1);
	return memo * memo;
}
lint modpow(lint a, lint b, lint m) {
	if (!b)return 1;
	if (b & 1)return modpow(a, b - 1, m) * a % m;
	lint memo = modpow(a, b >> 1, m);
	return memo * memo % m;
}
template<typename T>
void printArray(std::vector<T>& vec) {
	rep(i, vec.size() - 1)std::cout << vec[i] << " ";
	std::cout << vec.back() << std::endl;
}
template<typename T>
void printArray(T l, T r) {
	T rprev = r;
	rprev--;
	for (T i = l; i != rprev; i++) {
		std::cout << *i << " ";
	}
	std::cout << *rprev << std::endl;
}
int main(){
	lint a,b;
	std::cin>>a>>b;
	std::cout<<a*b<<std::endl;
	return 0;
}

Submission status: Runtime Error

Solution code:
a = int (input())
b = int (input())
 
if(a>=1 & a<=100 & b>=1 & b<=100):
  c=a*b;
  print(c)

Submission status: Runtime Error

Solution code:
N=int(input())
A=list(map(int,input().split()))
ans=1
for i in range(N):
  ans*=i
if ans > 10**18:
  print(-1)
else:
  print(ans)

Submission status: Runtime Error

Solution code:
n = int(input())
a=list(map(int, input().split()))
ans = 1
for i in a:
    ans = ans * i
    if ans == 0:
        print(0)
        exit()
if ans > 10**18:
    print(-1)
else:
    print(ans)

Submission status: Runtime Error

Solution code:
for i,j in [1:100,1:100]:
  print i*j

Submission status: Runtime Error

Solution code:
return int(input())*int(input())