n=list(input()) N=int(n[-1]) if N%2==0: print('0') print('No') else: print('1') print('No')