Buggy python submission (verdict: Runtime Error):
n = int(input())
a = list(map(int,input().split()))

new = 1
if 0 in a:
	print(0)
	exit()
	
for i in a:
	
	new *= a
	if new > (10**18):
		new = -1
		break
print(new)		
	


Fixed submission:
n = int(input())
a = list(map(int,input().split()))
new = 1
if 0 in a:
	print(0)
	exit()
for i in a:
	new *= i
	if new > (10**18):
		new = -1
		break
print(new)

Buggy python submission (verdict: Runtime Error):
n = int(input())
a = list(map(int,input().split()))

new = 1
for i in a:
	
	new *= a
	if new > (10**18):
		new = -1
		break
print(new)		
	


Fixed submission:
n = int(input())
a = list(map(int,input().split()))
new = 1
if 0 in a:
	print(0)
	exit()
for i in a:
	new *= i
	if new > (10**18):
		new = -1
		break
print(new)

Buggy python submission (verdict: Time Limit Exceeded):
from functools import reduce

n = int(input())

a = list(map(int,input().split()))
new = reduce(lambda x, y: x*y, a)
val = pow(10,18)
if new > val:
	print(-1)
else:
	print(new)	 


Fixed submission:
n = int(input())
a = list(map(int,input().split()))
new = 1
if 0 in a:
	print(0)
	exit()
for i in a:
	new *= i
	if new > (10**18):
		new = -1
		break
print(new)

Buggy python submission (verdict: Runtime Error):
from math import prod
n = int(input())

a = list(map(int,input().split()))
new = math.prod(a,start=0)
val = pow(10,18)
if new > val:
	print(-1)
else:
	print(new)	 


Fixed submission:
n = int(input())
a = list(map(int,input().split()))
new = 1
if 0 in a:
	print(0)
	exit()
for i in a:
	new *= i
	if new > (10**18):
		new = -1
		break
print(new)

Buggy python submission (verdict: Runtime Error):
from math import prod
n = int(input())

a = list(map(int,input().split()))
new = math.prod(a)
val = pow(10,18)
if new > val:
	print(-1)
else:
	print(new)	 


Fixed submission:
n = int(input())
a = list(map(int,input().split()))
new = 1
if 0 in a:
	print(0)
	exit()
for i in a:
	new *= i
	if new > (10**18):
		new = -1
		break
print(new)

Buggy python submission (verdict: Runtime Error):
from math import trunc
a,b = input().split()
a = int(a)
b = float(b)

print("{}".format(int(a*b)))


Fixed submission:
n = int(input())
a = list(map(int,input().split()))
new = 1
if 0 in a:
	print(0)
	exit()
for i in a:
	new *= i
	if new > (10**18):
		new = -1
		break
print(new)

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())

new = 1
a = list(map(int,input().split()))
for i in a:
	new = new * i 
val = pow(10,18)
if new > val:
	print(-1)
else:
	print(new)	 


Fixed submission:
n = int(input())
a = list(map(int,input().split()))
new = 1
if 0 in a:
	print(0)
	exit()
for i in a:
	new *= i
	if new > (10**18):
		new = -1
		break
print(new)

Buggy python submission (verdict: Runtime Error):
n = int(input())

new = 1
a = list(map(int,input().split()))
for i in a:
	new = new * i 
val = 10**18
if new > val:
	print(-1)
else:
	print(new)	 


Fixed submission:
n = int(input())
a = list(map(int,input().split()))
new = 1
if 0 in a:
	print(0)
	exit()
for i in a:
	new *= i
	if new > (10**18):
		new = -1
		break
print(new)

Buggy python submission (verdict: Time Limit Exceeded):
n = int(input())

new = 1
a = list(map(int,input().split()))
for i in a:
	new = new * i 
val = 10**18
if new > val:
	print(-1)
else:
	print(new)	 


Fixed submission:
n = int(input())
a = list(map(int,input().split()))
new = 1
if 0 in a:
	print(0)
	exit()
for i in a:
	new *= i
	if new > (10**18):
		new = -1
		break
print(new)