S = input() c = 0 for i in S: try:c += int(i) except:pass print(c)