1820Fibonacci Again

1820   Fibonacci Again

题目描述

There are another kind of Fibonacci numbers: 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).

Print the word "no" if not.

输入样例 复制
0
1
2
3
4
5
输出样例 复制
no
no
yes
no
no
no

说明

34
86
通过提交
时空限制2000ms/64mb
题目来源
评测方式在线评测
题目类型基础强化
难        度