import scala.io.StdIn.{readInt,readLine}

object Main {

  def main(args:Array[String]) = {
    var n = 0
    while( {n=readInt;n} != 0 ){
      val list = for(i<-1 to n) yield {
        val s = readLine.split(" ")
        (s(0), s(2).toDouble/((s(1).toDouble/100)*(s(1).toDouble/100)))
      }
      println(list.sortWith{(x,y) => Math.abs(22.0-x._2) < Math.abs(22.0-y._2)}.take(1)(0)._1)
    }
  }
}