Problem D: 循环计数---低温寒潮预警

Problem D: 循环计数---低温寒潮预警

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 326  Solved: 39
[Status] [Submit] [Creator:]

Description

输入最近n天的温度,判断是否出现寒潮(连续3天温度≤5℃且其中至少有1天≤0℃)
出现输出“yes”
否则输出“no

Input

输入为两行。
第一行为n,表示天数(n<=100)。
第二行为n个温度


Output

yes

Sample Input Copy

7
8 3 2 -1 6 0 1

Sample Output Copy

yes