BOJ-2693

const fs = require("fs")
const [num, ...arr] = fs.readFileSync("./test").toString().trim().split("\n")

for (let i = 0; i < num; i++) {
  const temp = arr[i].split(" ").sort((a, b) => b - a)
  console.log(temp[2])
}