fork download
  1. N=int(input())
  2. suma=0
  3. for i in range (N):
  4. x=int(input())
  5. if x%2==0: suma+=x
  6. print(suma)
Success #stdin #stdout 0.08s 14216KB
stdin
3
1
2
3
stdout
2