print(sum(int(i*i.isdigit()or 0)for i in input()))