Số fibonacci #5

View as PDF

Submit solution

Points: 100.00 (partial)
Time limit: 1.0s
Memory limit: 102M
Input: stdin
Output: stdout

Author:
Problem type

Nhập số nguyên dương ~N~. Tính tổng các số fibonacci từ 1 đến ~N~.

Input
  • Nhập số nguyên dương ~N~ (~1 \leq N \leq 15~).
Output
  • In ra kết quả bài toán.
Example

Input

3

Output

4

Comments

Please read the guidelines before commenting.


There are no comments at the moment.