a=b=c=d=e=f=g=h=i=j=k=l=m=n=o=p=q=r=s=t=u=v=w=x=y=z=0 print(sum(int(c) for c in input() if '0' <= c <= '9'))