about summary refs log tree commit diff
path: root/others/volume1/025.pas
blob: ff9f2c6eb387571eeee6bfdbc817ffc6ffa9aa5f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var
  x0, y0, x1, y1, x2, y2: int64;

begin
  read(x0, y0, x1, y1, x2, y2);
  if x1 = x2 then
    write(x0, ' ')
  else if x2 = x0 then
    write(x1, ' ')
  else
    write(x2, ' ');
  if y1 = y2 then
    writeln(y0)
  else if y2 = y0 then
    writeln(y1)
  else
    writeln(y2)
end.