eolymp
bolt
Try our new interface for solving problems
Problems

Parity of the number

Parity of the number

Check the given integer n for parity.

Input data

One integer n.

Output

Print 1 if the number n is even and 0 otherwise.

Time limit 1 second
Memory limit 64 MiB
Input example #1
7
Output example #1
0
Input example #2
-2
Output example #2
1
Author Matviychuk Sergiy Volodymyrovych
Source "ABC programming"