func readInt() -> [Int] {
    return readLine()!.split(separator: " ").map { Int($0)! }
}

func main() {
    let a = Int(readLine()!)!
    let line = readInt()
    let s = readLine()!

    print(a + line[0] + line[1], s)
}

main()