s = input()
head = 0; tail = 0; ans = 0; tmp = '' q = ['']*100
flag = True
for i in range(len(s)):
if s[i] == ',':
while head!=tail:
tmp += q[head]
head += 1
if flag and head < tail:
head += 1
flag = not flag
ans += int(tmp)
tmp = ''; flag = True
elif '0'<=s[i]<='9':
q[tail] = s[i]
tail += 1
若输入 s 为“1-500,2023900-,”,执行该程序段,变量 ans 的值为 ( )