Go: package main

import (
	"bufio"
	"io"
	"os"
	"strconv"
	"fmt"
)

var (
	nstr   func() string
	stdout *bufio.Writer
)

func init() {
	nstr = newReadString(os.Stdin)
	stdout = bufio.NewWriter(os.Stdout)
}

func main() {
	defer stdout.Flush()
	n := nint()
	r := fibonacci(n)
	fmt.Println(r)
}

func fibonacci(n int) int{
	if n == 0 || n == 1{
		return 1
	}else{
		fiList := make([]int, n+1)
		fiList[0] = 1
		fiList[1] = 1
		for i:=2; i<n+1; i++{
			fiList[i] = fiList[i-1] + fiList[i-2]
		}
		return fiList[n]

	}

}

func newReadString(ior io.Reader) func() string {
	r := bufio.NewScanner(ior)
	r.Buffer(make([]byte, 1024), int(1e+11))
	r.Split(bufio.ScanWords)

	return func() string {
		if !r.Scan() {
			panic("Scan failed")
		}
		return r.Text()
	}
}

func nint64() int64 {
	i, err := strconv.ParseInt(nstr(), 0, 64)
	if err != nil {
		panic(err.Error())
	}
	return i
}

func nint() int {
	return int(nint64())
}

func getIntSlice(n int) []int {
	b := make([]int, n)
	for i := 0; i < n; i++ {
		b[i] = nint()
	}
	return b
}

func getStringSlice(n int) []string {
	b := make([]string, n)
	for i := 0; i < n; i++ {
		b[i] = nstr()
	}
	return b
}

func gcd(x, y int) int {
	if y == 0 {
		return x
	}
	return gcd(y, x%y)
}

func lcm(x, y int) int {
	return x * y / gcd(x, y)
}

func contains(s []int, e int) bool {
	for _, a := range s {
		if a == e {
			return true
		}
	}
	return false
}

func bin(i int, prefix bool) string {
	i64 := int64(i)

	if prefix {
		return "0b" + strconv.FormatInt(i64, 2)
	} else {
		return strconv.FormatInt(i64, 2)
	}
}

func strReverse(s string) string {
	runes := []rune(s)
	for i, j := 0, len(runes)-1; i < j; i, j = i+1, j-1 {
		runes[i], runes[j] = runes[j], runes[i]
	}

	return string(runes)
}

C++: #include <bits/stdc++.h>
using namespace std;

typedef long long ll;


int main() {
    int n; cin >> n;
    vector<int> fib(n+1,0);
    fib[0]=1;
    fib[1]=1;
    
    for(int i=2; i<=n; i++){
        fib[i] = fib[i-1] + fib[i-2];
    }
    
    cout << fib[n] << endl;
}

C++: #include <iostream>
#include <vector>
using namespace std;

int main() {

	int n;
  	vector<int> v(1, 0);
  	v.push_back(1);
  
	cin >> n;
  
	for (int i = 2;i<n+2;i++){
      	v.push_back(v[i-1]+v[i-2]);
      	//cout<< v[i] <<endl;
    }
  
  	cout<< v[n+1] <<endl;

}

C++: #include <iostream>
#include <algorithm>
#include <vector>
#define debug(x) cout << #x << "==" << x << endl;

using namespace std;

//??\???
#define MAX_N 44
int N;
int dp[MAX_N];

int main() {
  ios::sync_with_stdio(false);

  cin >> N;

  dp[0] = dp[1] = 1;
  for(int i = 2; i <= N; i++) {
    dp[i] = dp[i-1] + dp[i-2];
  }

  cout << dp[N] << endl;

  return 0;
}

C++: #include<queue>
#include<string>
#include<utility>
#include<iostream>
using namespace std;

int main(){
    int n,q;
    pair<string,int> task;
    int lapse;
    cin>>n>>q;
    queue<pair<string,int>> Q;
    for(int i=0;i<n;++i){
        cin>>task.first>>task.second;
        Q.push(task);
    }
    while(! Q.empty()){
        int process=(Q.front().second>q?Q.front().second-q:0);
        lapse+=(Q.front().second>q?q:Q.front().second);
        string name=Q.front().first;
        task.first=name;
        task.second=process;
        Q.pop();
        if(task.second>0){
            Q.push(task);
        }
        else{
            cout<<task.first<<" "<<lapse<<"\n";
        }
    }
}

C++: #include <iostream>

using namespace std;


int F[44];

int main() {
  F[0] = 0;
  F[1] = 1;
  for (int i = 2; i < 44; ++i) {
    F[i] = F[i-1] + F[i-2];
  }

  int input;
  cin >> input;
  cout << F[input]<< endl;
}

C++: #include <algorithm>
#include <cstdio>
#include <iostream>
#include <map>
#include <cmath>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <bitset>
#include <cstring>
#include <deque>
#include <iomanip>
#include <limits>
#include <fstream>
using namespace std;
#define FOR(I,A,B) for(int I = (A); I < (B); ++I)
#define CLR(mat) memset(mat, 0, sizeof(mat))
typedef long long ll;

int main()
{
  ios::sync_with_stdio(false);
  cin.tie(0);
  ll dp[45];
  CLR(dp);
  dp[0]=dp[1]=1;
  FOR(i,2,45) dp[i]=dp[i-1]+dp[i-2];
  int n;
  cin>>n;
  cout<<dp[n]<<endl;
}

C++: #include <bits/stdc++.h>
using namespace std;

int main()
{
    int N;
    cin >> N;
    long long dp[N + 1];
    dp[0] = 1;
    dp[1] = 1;
    for (int i = 0; i < N - 1; i++) {
        dp[i + 2] = dp[i + 1] + dp[i];
    }
    printf("%lld\n", dp[N]);
}

C++: #include <iostream>

using namespace std;

int f(int n){
	static int dp[3000];
	for(int i=0;i<=n;i++){
	if(i==0|| i==1) dp[i] = 1;
	else dp[i] = dp[i-1] + dp[i-2];
	}
	return dp[n];
}
int main(){
	int n;
	cin>>n;
	cout<<f(n)<<endl;
}

C++: //c++ テンプレ
#include<bits/stdc++.h>
using namespace std;

typedef long long llint;
typedef long double ld;

#define inf 1e18
#define mod 1000000007
#define sort(v) sort(v.begin(),v.end())
#define reverse(v) reverse(v.begin(),v.end())
#define rep(i,a,n) for(int i=a;i<n;i++)



priority_queue<llint,vector<llint>,greater<llint> > que;
priority_queue<llint> Que;
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }

vector<llint>f;

void solve(){
    int n;
    cin >> n;
    f.resize(n+1);
    f[0]=1;
    f[1]=1;
    rep(i,2,n+1)f[i]=f[i-1]+f[i-2];
    cout << f[n] << endl;
}

int main(){
    solve();
    return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cassert>
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n)
#define rep(i,n) FOR(i,0,n)
#define DEBUG(x) cout<<#x<<": "<<x<<endl
#define vint vector<int>
#define vdouble vector<double>
#define vstring vector<string>
using namespace std;

#include<map>
#include<set>
#include<queue>

typedef long long ll;
typedef unsigned long long ull;

const int MAX_N = 1000000;

int dp[100];
int N;

int main() {
	cin >> N;
	rep(i, N+1){
		if(i == 0 || i == 1) dp[i] = 1;
		else dp[i] = dp[i-2] + dp[i-1];
	}
	cout << dp[N] << endl;
}

C++: #include<iostream>
using namespace std;
int N;

int fib(int n){
    if(n==0 || n==1)return 0;
    else return fib(n-1) + fib(n-2);
}

int main(){
    cin >> N;
    cout << fib(N) << endl;
}

C++: // ALDS1_10_A
#include <iostream>
#include <vector>
using namespace std;

int main(){
	int n;
	vector<int> fib;

	cin>>n;
	for(int i=0;i<=n;i++){
		if(i <= 1)
			fib.push_back(1);
		else
			fib.push_back(fib[i-1]+fib[i-2]);
	}
	
	cout<<fib[n]<<endl;

	return 0;
}

C++: #include <iostream>
using namespace std;

int main() {
    int n;
    cin >> n;
    int fib[50];
    fib[0] = fib[1] = 1;
    for (int i = 2; i <= n; i++) {
        fib[i] = fib[i-1] + fib[i-2];
    }
    cout << fib[n] << endl;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
using ll = long long;
using P = pair<int, int>;

int main() {
    int n; cin >> n;
    int F[50];
    F[0] = F[1] = 1;
    for (int i = 2; i <= n; i++) F[i] = F[i-1] + F[i-2];

    cout << F[n] << endl;

    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;

int memo[55];
int fib(int n)
{
    if ( memo[n] == -1 ) {
        if ( n <= 1 ) memo[n] = 1;
        else memo[n] = fib(n - 1) + fib(n - 2);
    }
    return ( memo[n] );
}

int main()
{
    int n;
    fill_n(memo, 55, -1);
    cout << fib((cin >> n, n)) << endl;
    return ( 0 );
}

C++: #include<iostream>
using namespace std;
int main()
{	int n;
	long long int a[45];
	a[0]=a[1]=1;
	for(int i=2;i<=44;i++)
		a[i]=a[i-2]+a[i-1];
	cin>>n;
	cout<<a[n]<<endl;
	return 0;
}