#CCBCHBAHAI0000128. Mảng Fibonacci (Fibonacci Array)
Mảng Fibonacci (Fibonacci Array)
Fibonacci Array
Source: beecrowd
Version: Phuoc Hung OJ Extended
Problem Statement
The Fibonacci sequence is defined by
Given an index , compute and print . Every Fibonacci value required by the input range fits in an unsigned 64-bit integer.
The original problem contains multiple test cases in one input. The Phuoc Hung OJ version uses one index per run to match the judge's independent-test-file model.
Input
One line contains the integer .
Output
Print one line in the exact form Fib(N) = X, where N is the given index and .
Subtasks
Subtask 1 (100 points): .
Examples
Input
60
Output
Fib(60) = 1548008755920
Explanation
For , start with and . Every next term is the sum of the previous two. Continuing through index gives
Therefore the program prints Fib(60) = 1548008755920.