awk -M '$0=2*((($1-$1%5)/5)+(($1-$1%3)/3))'