tinycodinglm / misc /misc-0053.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 16)
d517dc9 verified
|
Raw History Blame
1.16 kB
opencode trace
System You are an expert competitive programmer. You solve problems by analyzing requirements, designing algorithms, and writing clean, efficient code. When solving problems, explain your reasoning step by step before providing...

You are an expert competitive programmer. You solve problems by analyzing requirements, designing algorithms, and writing clean, efficient code. When solving problems, explain your reasoning step by step before providing the final solution.

User

Input

The input consists of a single string of uppercase letters A-Z. The length of the string is between 1 and 10 characters, inclusive.

Output

Output "YES" or "NO".

Examples

Input

GENIUS

Output

YES

Input

DOCTOR

Output

NO

Input

IRENE

Output

YES

Input

MARY

Output

NO

Input

SMARTPHONE

Output

NO

Input

REVOLVER

Output

YES

Input

HOLMES

Output

NO

Input

WATSON

Output

YES

Assistant

s = input().strip()
print("NO" if any(c in "DFHY" for c in s) else "YES")