S = input() now = (sum(int(a) for a in S if '0' <= a <= '9')) print(now)