-----Input-----

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


-----Output-----

Output 0 or 1.


-----Examples-----
Input
13

Output
1

Input
927

Output
1

Input
48

Output
0

Difficulty: introductory

Starter code:

Solutions:
x = int(input())
print(x%2)

print(int(input()) & 1)

print(int(input()) % 2)


print(int(input()) % 2)

n = int(input())
if n%2 != 0:
    print(1)
else:
    print(0)

a = int(input())
print(a % 2)


print(int(input()) % 2)

print(int(input())%2)

n=int(input())
if n%2==0:
    print(0)
else:
    print(1)

print(int(input()) % 2)

print(int(input())%2)

import sys

def read_line():
    return sys.stdin.readline().rstrip("\r\n")

n = int(read_line())
print(n % 2)


n = int(input())
print(n % 2)

print(int(input())%2)

print(int(input()) % 2) 

print(int(input())%2)

print(int(input()) % 2)

n=int(input())
print(n%2)


n = int(input())
print(n % 2)


n=int(input())
print(n%2)

print(int(input()) % 2)

n = int(input())

print(n % 2)

print(1 if (int(input()) & 1) else 0)

a = int(input())
print(a % 2)

a = int(input())
print(a%2)