- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
def checkio(opacity):
febonachi = [0, 1]
opacity = 10000 - opacity
year = 0
for i in range(0, 21):
febonachi.append((febonachi[i]+febonachi[i+1]))
for i in range(2, 5000):
if opacity == 0:
break
else:
year += 1
if year in febonachi:
opacity -= year
else:
opacity += 1
return year