7 while read -u 3 mass; do
8 fuel=$((($mass / 3) - 2))
9 fuel_total=$((fuel_total+$fuel))
10 fuel_and_extra=$((fuel_and_extra+$fuel))
11 extra_fuel=$((($fuel / 3) - 2))
12 while [ $extra_fuel -gt 0 ]; do
13 fuel_and_extra=$((fuel_and_extra+$extra_fuel))
14 extra_fuel=$((($extra_fuel / 3) - 2))