#coding: utf-8 sGetdat=input() # arr_datas=sGetdat.split() 空白で分割 arr_datas=list(sGetdat) nAns=0 for data in arr_datas: #print(data) if data.isdigit(): nAns +=int(data) print (nAns)