No.779 Heisei
Problem Statement
A date is called Heisei if it falls within the period from January 8, 1989 to April 30, 2019 (including both January 8, 1989 and April 30, 2019).
A date is given from standard input. Write a program that determines whether that date is Heisei.
Input
$Y$ $M$ $D$
Three natural numbers are given from standard input, separated by spaces, in the order of year (Gregorian calendar), month, and day.
The input date always exists (it is guaranteed that inputs such as month 13 day 40 or February 31 are not given).
The given date is limited to the range from December 31, 1969 to January 20, 2038 (inclusive of both ends).
Output
Print Yes if the input date is Heisei, and No if it is not.
Sample
Sample 1
Input
2001 9 9
Output
Yes
Sample 2
Input
2019 5 3
Output
No
It's a Friday, isn't it.
Sample 3
Input
1989 1 7
Output
No
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。