A - POSTal Code Editorial /

Time Limit: 2 sec / Memory Limit: 1024 MB

配点 : 9

注意

この問題に対する言及は、2021/4/24 18:00 JST まで禁止されています。言及がなされた場合、賠償が請求される可能性があります。 試験後に総合得点や認定級を公表するのは構いませんが、どの問題が解けたかなどの情報は発信しないようにお願いします。

問題文

数字と - のみからなる 8 文字の文字列 S が与えられます。

文字列 S が以下の条件を満たすかどうか判定して下さい。

  • 4 文字目は - である。
  • 4 文字目以外の全ての文字は数字である。

制約

  • S は(半角)数字と - のみからなる 8 文字の文字列

入力

入力は以下の形式で標準入力から与えられる。

S

出力

文字列 S が問題文の条件を満たすならば Yes を、満たさないならば No を出力せよ。


入力例 1

160-0022

出力例 1

Yes

入力例 2

1600022-

出力例 2

No

Score : 9 points

Warning

Do not make any mention of this problem until April 24, 2021, 6:00 p.m. JST. In case of violation, compensation may be demanded. After the examination, you can reveal your total score and grade to others, but nothing more (for example, which problems you solved).

Problem Statement

Given is a string S of length 8 consisting of digits and -s (hyphens).

Determine whether S satisfies the following conditions:

  • the fourth character is -;
  • the other characters are all digits.

Constraints

  • S is a string of length 8 consisting of digits and -s.

Input

Input is given from Standard Input in the following format:

S

Output

Print Yes if S satisfies the conditions in Problem Statement; print No otherwise.


Sample Input 1

160-0022

Sample Output 1

Yes

Sample Input 2

1600022-

Sample Output 2

No