Buggy python submission (verdict: Runtime Error):
N = input() 
A = list(map(int,input().split()))
c = 1
i = 0
for i in N-1:
    if c *= A[i] >= 10**18:
      print(-1)
    else:
      print(c)
  




Fixed submission:
n=int(input())
ls=[int(s) for s in input().split(" ")]

if 0 in ls:
  print(0)
else:
  num=1
  for i in ls:
    num*=i
    if num>10**18:
      num=-1
      break

  print(num)

Buggy python submission (verdict: Runtime Error):
N = input() 
A = list(map(int,input().split()))
c = 1
i = 0
for i in N-1:
    if c *= A[i] >= 10**18:
      print(-1)
      exit()
    else:
      print(c)
  




Fixed submission:
n=int(input())
ls=[int(s) for s in input().split(" ")]

if 0 in ls:
  print(0)
else:
  num=1
  for i in ls:
    num*=i
    if num>10**18:
      num=-1
      break

  print(num)

Buggy python submission (verdict: Runtime Error):
N = input() 
A = list(map(int,input().split()))
c = 1
i = 0
for i in N-1:
    if c *= A[i] >= 10**18:
        print(-1)
        exit()
  
print(c)



Fixed submission:
n=int(input())
ls=[int(s) for s in input().split(" ")]

if 0 in ls:
  print(0)
else:
  num=1
  for i in ls:
    num*=i
    if num>10**18:
      num=-1
      break

  print(num)

Buggy python submission (verdict: Runtime Error):
N = int(input()) 
A = list(map(int,input().split()))
c = 1
i = 0
for i in N-1:
    if c *= A[i] >= 10**18:
      print(-1)
  
print(c)



Fixed submission:
n=int(input())
ls=[int(s) for s in input().split(" ")]

if 0 in ls:
  print(0)
else:
  num=1
  for i in ls:
    num*=i
    if num>10**18:
      num=-1
      break

  print(num)

Buggy python submission (verdict: Runtime Error):
N = int(input()) 
A = list(map(int,input().split()))
c = 1
i = 0
for i in N-1:
  c *= A[i]:
    if c >= 10**18:
      print(-1)
  
print(c)



Fixed submission:
n=int(input())
ls=[int(s) for s in input().split(" ")]

if 0 in ls:
  print(0)
else:
  num=1
  for i in ls:
    num*=i
    if num>10**18:
      num=-1
      break

  print(num)

Buggy python submission (verdict: Runtime Error):
N = int(input()) 
A = list(map(int,input().split()))
c = 1
i = 0
for i in N-1:
  c *= A[i]
   if c >= 10**18:
      print(-1)
  
print(c)



Fixed submission:
n=int(input())
ls=[int(s) for s in input().split(" ")]

if 0 in ls:
  print(0)
else:
  num=1
  for i in ls:
    num*=i
    if num>10**18:
      num=-1
      break

  print(num)

Buggy python submission (verdict: Runtime Error):
N = int(input()) 
A = list(map(int,input().split()))
c = 1
for i in N-1:
  c *= A[i]
  if c >= 10**18:
    print(-1)
  
print(c)



Fixed submission:
n=int(input())
ls=[int(s) for s in input().split(" ")]

if 0 in ls:
  print(0)
else:
  num=1
  for i in ls:
    num*=i
    if num>10**18:
      num=-1
      break

  print(num)

Buggy python submission (verdict: Runtime Error):
N = int(input()) 
A = list(map(int,input().split()))
c = 1
for i in N-1:
  c *= A[i]
  print(c)
if c >= 10**18:
  print(-1)


Fixed submission:
n=int(input())
ls=[int(s) for s in input().split(" ")]

if 0 in ls:
  print(0)
else:
  num=1
  for i in ls:
    num*=i
    if num>10**18:
      num=-1
      break

  print(num)

Buggy python submission (verdict: Runtime Error):
N = int(input()) 
A = list(map(int,input().split()))
c = 1
for i in N-1:
  c *= A[i]
print(c)
if c >= 10**18:
print(-1)


Fixed submission:
n=int(input())
ls=[int(s) for s in input().split(" ")]

if 0 in ls:
  print(0)
else:
  num=1
  for i in ls:
    num*=i
    if num>10**18:
      num=-1
      break

  print(num)

Buggy python submission (verdict: Runtime Error):
A = list(map(int,input().split()))
N = len(A)
c = 1
for i in N-1:
  c *= A[i]
print(c)
if c >= 10**18:
  print(-1)


Fixed submission:
n=int(input())
ls=[int(s) for s in input().split(" ")]

if 0 in ls:
  print(0)
else:
  num=1
  for i in ls:
    num*=i
    if num>10**18:
      num=-1
      break

  print(num)

Buggy python submission (verdict: Runtime Error):
A = list(map(int,input().split()))
N = len(A)
c = 1
for i in N:
  c *= A[i]
print(c)
if c >= 10**18:
  print(-1)


Fixed submission:
n=int(input())
ls=[int(s) for s in input().split(" ")]

if 0 in ls:
  print(0)
else:
  num=1
  for i in ls:
    num*=i
    if num>10**18:
      num=-1
      break

  print(num)

Buggy python submission (verdict: Runtime Error):
A = list(map(int,input().split()))
N = len(A)
c = 1
for i in N:
  c *= A[i]
  print(c)
if c >= 10**18:
  print("-1")

Fixed submission:
n=int(input())
ls=[int(s) for s in input().split(" ")]

if 0 in ls:
  print(0)
else:
  num=1
  for i in ls:
    num*=i
    if num>10**18:
      num=-1
      break

  print(num)