month = int(input()) def fx(n): if n == 1 or n == 2: return 1 else: return fx(n - 1) + fx(n - 2) # 递归函数 num = fx(month) print(num)