import strutils, tables var N = stdin.readLine.parseInt proc fibo*(n: int): int = var store = {0: 0, 1: 1}.toTable for i in 2..n: store[i] = store[i-1] + store[i-2] result = store[n] echo fibo(N+1)