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

Output 0 or 1.
The input contains a single integer *a* (10 ≤ *a* ≤ 999).
none
13
1
927
1
48
0
10
0
999
1
142
0
309
1
572
0
835
1
990
0
168
0
431
1
694
0
957
1
932
0
import sys
from collections import *
from math import *
import re
def inp_arr():return list(map(int,input().split()))
def inp():return map(int,input().split())
def lcm(a,b):return (a*b)/gcd(a,b)
def iseven(n):return[False,True][0 if n%2 else 1]
max_int = sys.maxsize
mod = 10**9+7

n=int(input())
print(0 if iseven(n) else 1)