s=input() sum(map(int,filter(str.isdecimal,list(s))))