Write a program that receives a string of numbers as input and calculates the sum of digits less than 5 that occur in this string.