s=input() ans=sum(int(i)for i in s) print (ans)