Tuesday
InterviewTime limit2sMemory limit1024 MB
Given X, print 1 if the day X days after a Sunday is a Tuesday, otherwise print 0.
- Level
Easy1 of 10
- Topics
- Math, Implementation
- Solved
- No attempts yet
Problem
An integer X is given.
Today is Sunday. If the day X days from today is a Tuesday, print 1. Otherwise, print 0.
Input
The input is given in the following format.
X
Output
Print 1 if the day X days from today is a Tuesday, and 0 otherwise.
Print nothing except the answer. Do not print prompts such as a request for input.
Constraints
1 ≤ X ≤ 100.Xis an integer.