#CCBCHMUOI0000019. Nhóm ngày làm việc (Working Day Group)
Nhóm ngày làm việc (Working Day Group)
Working Day Group
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
An integer d encodes a weekday from 1 through 7. Codes 1–5 are working days, 6 and 7 are rest days. Other codes are invalid.
Input
One integer d.
Output
Print WORK for d=1..5, REST for d=6 or 7, and INVALID otherwise.
Subtasks
- Subtask 1 (20%): 1 <= d <= 5.
- Subtask 2 (30%): 1 <= d <= 7.
- Subtask 3 (50%): -1000 <= d <= 1000.
Examples
Example 1
Input
6
Output
REST
Explanation
Code 6 denotes a day off.
Example 2
Input
0
Output
INVALID
Explanation
Code 0 is not a valid weekday code.