read x echo $[x<3?2:x*5+x%2*6-16]