Under construction

Still being built. Things may change

Tuesday

Interview

Time limit2sMemory limit1024 MB

Summary
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.
  • X is an integer.

Examples3

  1. Example 1

    Input
    2
    
    Expected output
    1
    
  2. Example 2

    Input
    10
    
    Expected output
    0
    
  3. Example 3

    Input
    100
    
    Expected output
    1