Fibonacci Again
1000ms 32768K
描述:
There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).
(存在另外一中特别的Fibonacci数字:F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).)
输入:
Input consists of a sequence of lines, each containing an integer n. (n < 1,000,000).
(输入包括有顺序的行,其中每一行里有一个整数)
输出:
Print the word "yes" if 3 divide evenly into F(n).
(如果3能整数F(n)输出“yes”)
Print the word "no" if not.
(如果不能,输出“no”)