codeforces#P952A. Quirky Quantifiers

Quirky Quantifiers

Description

The input contains a single integer a (10 ≤ a ≤ 999).

Output 0 or 1.

Input

The input contains a single integer a (10 ≤ a ≤ 999).

Output

Output 0 or 1.

Samples

13

1

927

1

48

0