402175: GYM100687 A Bad Printer (A)

Memory Limit:64 MB Time Limit:1 S
Judge Style:Text Compare Creator:
Submit:0 Solved:0

Description

A. Bad Printer (A)time limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard output

Last semester, PSUT’s e-learning system crashed. Unfortunately, Dr. Khamis lost many of his files, including the grades of the Operating Systems course. After searching between his papers, he was lucky to find a hard copy of the grades. Unfortunately again, the hard copy was printed using the department’s old printer, which puts random ink drops on the printed papers. This made many of the student IDs hard to read.

Help Dr. Khamis by writing a program to check automatically if a certain ID is readable or not.

Input

The input contains a student ID.

Each ID is made of exactly 8 digits (20110000 ≤ ID ≤ 20159999). If any of the digits is not readable due to an ink drop, the digit is replaced with a question mark ‘?’.

Output

Print ‘Yes’ if the student ID is readable and print ‘No’ otherwise.

ExamplesInput
201105?0
Output
No
Input
?011????
Output
No
Input
20120300
Output
Yes

加入题单

算法标签: