# 50040. Magic Number

## I'm a slow walker, but I never walk backwards.

A magic expression tests if an integer $M$ satisfies all the following conditions.

• $M$ is greater than 0.
• $M$ is an even number.
• $M$ is greater than 10000, or $M$ is smaller than 1000.

Now given an integer $M$, please assign the magic expression to another integer $N$ and print the value of $N$.

## Input Format

The input contains one integer $M$.

## Output Format

Print the value of $N$, which is the result of the magic expression of $M$.

## Sample Input 1

514


## Sample Output 1

1


## Sample Input 2

0


## Sample Output 2

0


## Sample Input 3

1729


## Sample Output 3

0


## Sample Input 4

10000


## Sample Output 4

0