t = input() sum = 0 for val in tmp: sum += int(val) print(sum)