let input:[String] = readLine()!.map{String($0)} var value:Int = 0 for i in 0 ..< input.count { value += Int(input[i])! } print(value)