AtCoder Beginner Contest 211
B
Cycle Hit
AtCoder
⌀ 0
原题
← AC →
翻译中…

Problem Statement

翻译中…

You are given four strings $S_1$, $S_2$, $S_3$, and $S_4$. Determine whether this sequence of strings has one of each of the following: H, 2B, 3B, and HR. Here, it is guaranteed that every $S_i$ is H, 2B, 3B, or HR.

翻译中…

Constraints

翻译中…
  • Each $S_i$ is H, 2B, 3B, or HR.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

S_1
S_2
S_3
S_4

翻译中…

Output

翻译中…

If the given sequence of strings has one of each of H, 2B, 3B, and HR, print Yes. Otherwise, print No.

翻译中…

样例

Input #1
3B
HR
2B
H
Output #1
Yes
We have one of each of `H`, `2B`, `3B`, and `HR`.
Input #2
2B
3B
HR
3B
Output #2
No
We have no `H`.
题目信息
题号
abc211_b
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。