#!/usr/bin/python def fibo(n): x, y = 1, 1 for _ in xrange(n): x, y = y, x+y return x print fibo(int(raw_input()))