read n x echo $[x-x*n+`tr \ +|bc`]