fork download
  1. n = int(input())
  2.  
  3. def fib(n):
  4. if n == 1 or n == 2:
  5. return 1
  6. else:
  7. return fib(n - 1) + fib(n - 2)
  8.  
  9. print(fib(n))
Success #stdin #stdout 4.09s 14140KB
stdin
37
stdout
24157817