#include <stdio.h> int dp[100]; int fib(int n) { if(dp[n]) return dp[n]; if(n<=1) return n; else return dp[n] = fib(n-1)+fib(n-2); } int main() { printf("%d", fib(35)); }