read N if [ $((N % 2)) -eq 0 ]; then echo 0 else echo 1 fi