read a b b-a echo $[(_-_*2%3+3)/3]