read n echo $[n&n-1?3-n%2:1]