b=0 for i in list(input()): b+=(int(i) if i.isdigit() else 0) print(b)