while read a b do $b||echo $[++a*b] done