-----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: EASY

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


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


print(int(input()) & 1)


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


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


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


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


from math import sin, cos, pi, fabs, sqrt, log2
n = int(input())
print(n % 2)


from math import *
n = int(input())
if n % 2 == 0:
	print(0)
else:
	print(1)


n = int(input())
print(n & 1)


I = lambda : list(map(int, input().split()))
(n,) = I()
print(1) if n % 2 else print(0)


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


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


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


print(int(input()) % 2)


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


import re
import math
import decimal
import bisect

def read():
	return input().strip()
print(int(read()) % 2)


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


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


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


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


__author__ = 'Dilshod'
n = int(input())
print(n % 2)


n = str(input())
last = n[-1]
int_ = int(last)
if int_ % 2 == 0:
	print('0')
else:
	print('1')


def solve():
	n = int(input())
	if n % 2 == 0:
		print(0)
	else:
		print(1)
for t in range(1):
	solve()


import random as rand

def quirkyQuantifier(a):
	if a % 2 == 0:
		return 0
	else:
		return 1
a = int(input())
if a < 10 or a > 999:
	exit()
print(quirkyQuantifier(a))


def main_function():
	s = int(input())
	if not s % 2:
		return 0
	return 1
print(main_function())


a = int(input())
print(a & 1)


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


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


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


from math import *
from cmath import *
from itertools import *
from decimal import *
from fractions import *
from sys import *
from types import CodeType, new_class
print(int(input()) % 2)


def main():
	n = int(input())
	print(n & 1)
main()


s = input()
print(int(s[-1]) % 2)


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


import sys

def read_line():
	return sys.stdin.readline().rstrip('\r\n')
n = int(read_line())
print(n % 2)


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


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


x = int(input())
print(x & 1)