splits a 3 digit number and adds them together.