fork download
  1. n=int(input())
  2. a=[0for i in range(n)]
  3. a[0]=1
  4. a[1]=2
  5. for i in range(2,n):
  6. a[i]=a[i-1]+a[i-2]
  7. print(a[n-1]%10007)# your code goes here
Runtime error #stdin #stdout #stderr 0.13s 23420KB
stdin
1
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 4, in <module>
IndexError: list assignment index out of range