split digits.cpp