print(sum(int(i) for i in iter(input()) if i.isdigit()))