s=[int(i) for i in input() if input().isdigit()] print(sum(s))