P26480 [AtCoder] SoundHound
普及
题目描述

Problem Description

Kenkoooo works at SoundHound Inc. He decided to conduct marketing by finding words that are similar to SoundHound to increase the company's popularity. Initially, he considers words consisting of two words where the concatenation of the first letters of each word forms SH as similar.

Your task is to determine if a given word consisting of two words \( X \) and \( Y \) has the first letters concatenated to form SH.

Input Format

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

\( X \) \( Y \)

Output Format

Output YES if the given word is similar to SoundHound, otherwise output NO.

Sample Input and Output

Sample Input #1

SAINT HELENA

Sample Output #1

YES

Sample Input #2

SOUND HOUND

Sample Output #2

YES

Sample Input #3

SOUND SPIDER

Sample Output #3

NO

Sample Input #4

S H

Sample Output #4

YES

Sample Input #5

X Y

Sample Output #5

NO

Notes/Hints

Constraints

  • The given words consist of uppercase English letters.
  • The length of each word is between 1 and 10 inclusive.
输入格式

见题面 Input 部分

输出格式

见题面 Output 部分

样例输入
SAINT HELENA
样例输出
YES