import java.util.*;


public class Solution {
    /**
     * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可
     *
     * 
     * @param n int整型 
     * @return int整型
     */
    public int Fibonacci (int n) {
        double root5 = Math.sqrt(5);
        double a = (1 + root5)/2.0;
        double b = (1 - root5)/2.0;
        double res = (Math.pow(a,n)-Math.pow(b,n))/root5;
        return (int)res;
    }
}