{ echo 0; cat; } | fold -w 1 | grep '[0-9]' | xargs | tr ' ' '+' | bc