def f():
    a, b = 0, 1
    while 1:
        yield a
        a, b = b, a + b


a = f()
a.next()

s = 0
for i in range(1, 100):
    n = a.next()
    # print n
    if n <= 4000000:
        if i % 2 == 0:
            s = s + n
    else:
        break

print(s)

2cf93850c99b859e01502d53858648fb15f6d966
<mask token>

def f():
    a, b = 0, 1
    while 1:
        yield a
        a, b = b, a + b


<mask token>

def f():
    a, b = 0, 1
    while 1:
        yield a
        a, b = b, a + b


<mask token>
a.next()
<mask token>
for i in range(1, 100):
    n = a.next()
    if n <= 4000000:
        if i % 2 == 0:
            s = s + n
    else:
        break
print(s)

def f():
    a, b = 0, 1
    while 1:
        yield a
        a, b = b, a + b


a = f()
a.next()
s = 0
for i in range(1, 100):
    n = a.next()
    if n <= 4000000:
        if i % 2 == 0:
            s = s + n
    else:
        break
print(s)

def f():
    a, b = 0, 1
    while 1:
        yield a
        a, b = b, a + b


a = f()
a.next()

s = 0
for i in range(1, 100):
    n = a.next()
    # print n
    if n <= 4000000:
        if i % 2 == 0:
            s = s + n
    else:
        break

print(s)
