#coding: utf-8 sGetdat=input() arr_datas=sGetdat.split() nAns=0 for data in arr_datas: if data.isdigit(): nAns +=data print (nAns)