a=input() b=0 for i in a: if i=="\r": b+=int(i) print(b)