题目描述
Problem Description
You are given an 8-character string $ S $ consisting only of digits and -.
Determine whether the string $ S $ satisfies the following conditions:
- The 4th character is
-. - All characters except the 4th character are digits.
Input Format
The input is given from the standard input in the following format:
$ S $
Output Format
If the string $ S $ meets the conditions described in the problem statement, output Yes. Otherwise, output No.
Sample Input and Output
Sample Input #1
160-0022
Sample Output #1
Yes
Sample Input #2
1600022-
Sample Output #2
No
Notes/Hints
Constraints
- $ S $ is an 8-character string consisting only of (half-width) digits and
-.
输入格式
见题面 Input 部分
输出格式
见题面 Output 部分
样例输入
160-0022
样例输出
Yes