read a n _[b*=a,b/m?m=b:!--n] echo "$[m=9**9,b=1,_,m] $[b%m]"