Problem I. Fibonacci sequence
题号:NC229651
时间限制:C/C++/Rust/Pascal 3秒,其他语言6秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Bob likes formula,Now there is a formula:

Give you ,Bob wants to know: 

The date guarantees  is integer。

输入描述:

The first line contains three integers 

The second line contains integers .


输出描述:

An integer represents the answer。
示例1

输入

复制
1 1 100 5
1 2 3 4 5

输出

复制
84

说明