print(sum(int(x) for x in input() if ord(x)>47 and ord(x)<58))