Amplitude Hackathon Summer '24 Problem 1 - Is Jeffrey in the Office?

View as PDF

Submit solution

Points: 3 (partial)
Time limit: 0.25s
Memory limit: 1G

Problem type

You 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

s will be a day of the week. Specifically, s will be one of Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.

Input Specification

The first and only line of input contains a string s.

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

There are no comments at the moment.