import scala.math._
object Main {
  def main(args:Array[String]):Unit={
    val N = readInt
    var hP = 0
    var x:Array[Int] = Array()
    var y:Array[Int] = Array()
    var h:Array[Int] = Array()
    for(i <- 0 until N){
      val tmp = readLine.split(" ").map(x => x.toInt)
      x = x:+tmp(0)
      y = y:+tmp(1)
      h = h:+tmp(2)
      if(h>0) hP = i
    }
    var flag = true
    for(i <- 0 until N if flag){
      var H = abs(x(i)-x(hP))+abs(y(i)-y(hP)) + h(hP)
      for(a <- 0 until 100 if flag){
        for(b <- 0 until 100 if flag){
          var HH = H-abs(x(i)-a)-abs(y(i)-b)
          HH = max(HH,0)
          if(HH==h(N)) flag = false
          
          if(flag) println(a+" "+b+" "+HH)
        }
      }     
    }
    
  }
}