var result: Int = 0 for v in 3...5 { if let n = Int(readLine() ?? "") { result += n*v } } print(result)