var input = require('fs').readFileSync('/dev/stdin', 'utf8');
var Arr=(input.trim()).split("\n");
while(true){
   var AL=Arr.shift();
   if(AL==0)break;
   var p;
   var max=0;
   for(var i=0;i<AL;i++){
      var arr=(Arr.shift()).split(" ").map(Number);
      var sum=arr[1]+arr[2];
      if(max<=sum){
         max=sum;
         p=arr[0];
      }
   }
   console.log(p+" "+max);
}