P26652 [AtCoder] Yahoo
普及
题目描述

Problem Description

Takahashi is planning to start a new company. This time, he decided to create a search engine company, so he decided to use a string obtained by rearranging the 5 characters of yahoo as the company name.

Aoki, a friend of Takahashi, proposed a string \( S \) as the new company name. Determine if this string matches Takahashi's intention.

Input Format

The input is given from the standard input in the following format:

\( S \)

Output Format

If \( S \) matches Takahashi's intention, output YES; otherwise, output NO.

Sample Input and Output

Sample Input #1

oohay

Sample Output #1

YES

Sample Input #2

abcde

Sample Output #2

NO

Sample Input #3

yahoo

Sample Output #3

YES

Sample Input #4

yohaa

Sample Output #4

NO

Notes/Hints

Constraints

  • \( |S|=5 \)
  • \( S \) consists only of lowercase English letters.

Sample Explanation 1

Rearranging the characters of yahoo in the order of the 5th, 4th, 3rd, 2nd, and 1st positions results in oohay.

Sample Explanation 3

yahoo itself also satisfies the condition.

输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
oohay
样例输出
YES