memo = {1: 1, 2: 1} def fib(n): if n in memo: return memo[n] else: memo[n] = fib(n-1) + fib(n-2) return memo[n] for i in range(1, 201): print(fib(i))