read v t p v*~p echo $[1-_+~_/~-t]