read n echo $[n&1]