#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

Sample Input 1

13

Sample Output 1

1

Sample Input 2

927

Sample Output 2

1

Sample Input 3

48

Sample Output 3

0