Chẵn lẻ

View as PDF

Points: 100 (p) Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Kiểm tra số \(n\) là số chẵn hay số lẻ.

Input

  • Một dòng duy nhất chứa số \(n\) \((0 \leq n \leq 10^5)\).

Output

  • Một dòng duy nhất in ra 1 nếu \(n\) chẵn hoặc in ra 0 nếu \(n\) lẻ.

Example

Test 1
Input
9
Output
0
Test 2
Input
100
Output
1

Comments

There are no comments at the moment.