2020 for in range append int input 15001 for in if and if 15001 print

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
a = []
N = 2020
for i in range(0, N):
a.append(int(input())
m = 15001
for i in a:
if i%8 != 0 and i < m:
m = i
if m == 15001: print(a)
else:
for i in range(N):
if i%2 == 1 and a[i] > m:
a[i] -= m
print(a)