#P952A. Quirky Quantifiers

Quirky Quantifiers

No submission language available for this problem.

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