"""
Even Fibonacci numbers

"""

a = 1
b = 2
l=[1,2]
c = 3
while c < 4000000:
    l.append(c)
    a=b
    b=c
    c=a+b
s=0 
for i in range(len(l)):
    
    if l[i]%2==0:
        s+=l[i]
print(s)

     
    
    

    
ed87177c17c20ef031f0230fdcb7f45a91dbff30
<mask token>

<mask token>
while c < 4000000:
    l.append(c)
    a = b
    b = c
    c = a + b
<mask token>
for i in range(len(l)):
    if l[i] % 2 == 0:
        s += l[i]
print(s)

<mask token>
a = 1
b = 2
l = [1, 2]
c = 3
while c < 4000000:
    l.append(c)
    a = b
    b = c
    c = a + b
s = 0
for i in range(len(l)):
    if l[i] % 2 == 0:
        s += l[i]
print(s)

"""
Even Fibonacci numbers

"""

a = 1
b = 2
l=[1,2]
c = 3
while c < 4000000:
    l.append(c)
    a=b
    b=c
    c=a+b
s=0 
for i in range(len(l)):
    
    if l[i]%2==0:
        s+=l[i]
print(s)

     
    
    

    