def floor(n): if n == 1: return 1 if n == 2: return 2 return floor(n - 1) + floor(n - 2) print(floor(int(input())))