read a b n n--%3!=0 echo $[b*_^a*_]