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

ans=1
if 0 in x:
  print(0)
  break
  for i in x:
    ans=ans*i  
if ans>=1000000000000000000:
  ans=-1
print(ans)

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

Buggy python submission (verdict: Time Limit Exceeded):
n=int(input())
x=list(map(int, input().split()))
 
ans = 1
for i in x:
  ans = ans*i
  
if ans > 1000000000000000000:
  ans = -1
print(ans)


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

Buggy python submission (verdict: Runtime Error):
n=int(input())
x=list(int(input().split())
 
ans = 1
for i in x:
  ans = ans*i
  
if ans > 1000000000000000000:
  ans = -1
print(ans)


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

Buggy python submission (verdict: Runtime Error):
n = int(input())
x = [int(input().split()) for i in range(n)]
 
ans = 1
for i in x:
  ans = ans*i
  
if ans > 1000000000000000000:
  ans = -1
print(ans)

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

Buggy python submission (verdict: Runtime Error):
n=int(input())
x=[int(input()) for i in range(n)]
 
ans=1
for i in x:
  ans = ans*i
  
if ans > 1000000000000000000:
  ans=-1
print(ans)

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

Buggy python submission (verdict: Runtime Error):
n = int(input())
x = [int(input()) for i in range(n)]

ans = 1
for i in x:
  ans = ans*i
  
if ans > 1000000000000000000:
  ans = -1

print(ans)


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

Buggy python submission (verdict: Runtime Error):
n = int(input())
x = [input() for i in range(n)]

ans = 1
for i in x:
  ans = ans*i
  
if ans > 1000000000000000000:
  ans = -1

print(ans)

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

Buggy python submission (verdict: Runtime Error):
n = int(inut())
x = [input() for i in range(n)]

ans = 1
for i in x:
  ans = ans*i
  
print(ans)


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

Buggy python submission (verdict: Runtime Error):
n = int(inut())
x = [input() for i in range(n)]

ans = 1
for i in x:
  ans*i
  
print(ans)

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