let tmp = readLine()!.map({Int(String($0))}); var ans = 0; for i in 0...tmp.count-1 { if(tmp[i] != nil) { ans+=tmp[i]! } } print(ans);