AlgoBazaAlgoBaza
Back to tasks

Even?

Beginner

Python for kids 路 Lesson 17: input() - reading a number

Problem Statement

Read a number and print the remainder of dividing it by 2 (0 - even, 1 - odd).

Input Format

One whole number n (0 <= n <= 1000).

Output Format

One number - the result.

Examples
Example 1

Input

7

Output

1
Example 2

Input

10

Output

0