102950: [Atcoder]ABC295 A - Probably English

Memory Limit:256 MB Time Limit:2 S
Judge Style:Text Compare Creator:
Submit:6 Solved:0

Description

Score : $100$ points

Problem Statement

You are given $N$ strings $W_1,W_2,\dots,W_N$ consisting of lowercase English letters.
If one or more of these strings equal and, not, that, the, or you, then print Yes; otherwise, print No.

Constraints

  • $N$ is an integer between $1$ and $100$, inclusive.
  • $1 \le |W_i| \le 50$ ($|W_i|$ is the length of $W_i$.)
  • $W_i$ consists of lowercase English letters.

Input

The input is given from Standard Input in the following format:

$N$
$W_1$ $W_2$ $\dots$ $W_N$

Output

Print the answer.


Sample Input 1

10
in that case you should print yes and not no

Sample Output 1

Yes

We have, for instance, $W_4=$ you, so you should print Yes.


Sample Input 2

10
in diesem fall sollten sie no und nicht yes ausgeben

Sample Output 2

No

None of the strings $W_i$ equals any of and, not, that, the, and you.

Input

题意翻译

由小写字母组成 $N$ 个字符串 $W_1,W_2,...,W_N$。 如果其中有一个或多个是 `and`,`not`,`that`,`the`,`you` 其中之一,就输出 `Yes`,否则就输出 `No`。

Output

得分:$100$分

问题描述

给你$N$个由小写英文字母组成的字符串$W_1,W_2,\dots,W_N$。
如果有其中一个字符串等于andnotthattheyou,则输出Yes;否则,输出No

约束

  • $N$是一个在$1$和$100$之间的整数。
  • $1 \le |W_i| \le 50$($|W_i|$表示$W_i$的长度)。
  • $W_i$由小写英文字母组成。

输入

输入从标准输入以以下格式给出:

$N$
$W_1$ $W_2$ $\dots$ $W_N$

输出

输出答案。


样例输入1

10
in that case you should print yes and not no

样例输出1

Yes

例如,我们有$W_4=$ you,所以你应该输出Yes


样例输入2

10
in diesem fall sollten sie no und nicht yes ausgeben

样例输出2

No

没有字符串$W_i$等于andnotthattheyou中的任何一个。

HINT

n个单词中,是否存在and, not, that, the, you这些单词?出现其中一个都算?

加入题单

算法标签: