a, b = 1, 2
count = 1
while b < 4000000:
    a, b = b, a + b
    count += 1
print(f'{a}是400万以内最大的斐波那契数,是第{count}个斐波那契数')