Amplitude Hackathon Summer '24 Problem 1 - Is Jeffrey in the Office?
View as PDFYou know what day today is. Is Jeffrey in the office? It is well-known he is in the office if and only if it is a weekday - that is, not Saturday nor Sunday.
Constraints
will be a day of the week. Specifically,
will be one of Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.
Input Specification
The first and only line of input contains a string .
Output Specification
Output YES if Jeffrey is in the office, and output NO otherwise.
Sample Input 1
Monday
Sample Output 1
YES
Sample Explanation 1
Monday is a weekday, so Jeffrey is in the office.
Sample Input 2
Sunday
Sample Output 2
NO
Sample Explanation 2
Sunday is not a weekday, so Jeffrey is not in the office.
Comments