Fibonacci
题号:NC214895
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 1024 M,其他语言2048 M
64bit IO Format: %lld

题目描述

In mathematics, the Fibonacci numbers, commonly denoted as f_n, is a sequence such that each number is the sum of the two preceding numbers, starting with and . That is, and .

Thus, the beginning of the sequence is .

Given , please calculate , where when is even, otherwise .

输入描述:

The only line contains one integer .

输出描述:

Output one number -- .
示例1

输入

复制
3

输出

复制
2
示例2

输入

复制
10

输出

复制
24
示例3

输入

复制
100

输出

复制
2739