const fs = require('fs');
const input = fs.readFileSync('dev/stdin').toString().trim().split(/\s+/).map(Number);
const x = input.filter((v, i) => i % 2 === 0);
const y = input.filter((v, i) => i % 2 !== 0);
console.log(findCoord(x), findCoord(y));
function findCoord(coord) {
return coord[0] === coord[1] ? coord[2] : coord[1] === coord[2] ? coord[0] : coord[1];
}
각 x, y 를 비교해 좌표를 찾아냈다.