402175: GYM100687 A Bad Printer (A)
Description
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.
InputThe 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 ‘?’.
OutputPrint ‘Yes’ if the student ID is readable and print ‘No’ otherwise.
ExamplesInput201105?0Output
NoInput
?011????Output
NoInput
20120300Output
Yes