local x1, y1, x2, y2, x3, y3 = io.read("*n", "*n", "*n", "*n", "*n", "*n") local x4, y4 if((y2 - y1) * (y3 - y1) == -(x2 - x1) * (x3 - x1)) then x4, y4 = x2 + x3 - x1, y2 + y3 - y1 elseif((y1 - y2) * (y3 - y2) == -(x1 - x2) * (x3 - x2)) then x4, y4 = x1 + x3 - x2, y1 + y3 - y2 else x4, y4 = x1 + x2 - x3, y1 + y2 - y3 end print(string.format("%d %d\n", x4, y4))