words = input() sum = 0 for i in words: if i.isdecimal(): sum += int(i)