#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.

13

927

48

1

1

0