[Solved] python won’t run this program; says there is a syntax error


you should close the brackets on the second input

n = int(input())
s = 1000000
a = []
for i in range(n):
  a.append(int(input()) <<<<<<<<<<<<<<<< here
for i in range(0,(n-16)):
  for k in range(15,(n-16)):
    if (a[i]*a[i+k]) <= s:
      s = a[i]*a[i+k]
print(s)

solved python won’t run this program; says there is a syntax error