num=[input() for i in range (len(input()))] import re if num.isdigit(): print(sum(num)) else: print(0)