시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 128 MB 39 17 17 44.737%

문제

꿍은 지금 학생들에게 평행사변형에 대해 가르쳐주고 있는데 다음과 같은 문제를 내주고 있다. 여러분들도 함께 풀어 보아라.

문제 : 평행사변형의 인접한 두 변의 꼭지점의 좌표들이 주어졌을 때, 나머지 하나의 점, 즉 4번째 점의 좌표를 구하여라.

입력

각 줄은 8개의 실수로 이루어져 있는데 각각 첫 번째 변의 양 끝점의 (x,y) 좌표와 두 번재 변의 양 끝점의 (x,y) 좌표로 구성되어 있다. 모든 좌표는 미터 단위이며 mm까지 나타내야 한다. 또한 모든 좌표값은 -10000~10000의 범위를 갖는다.

출력

각각의 입력에 대해 각 줄에 네 번째 점의 좌표를 미터 단위로 mm까지 나타내어라.

예제 입력 1

0.000 0.000 0.000 1.000 0.000 1.000 1.000 1.000
1.000 0.000 3.500 3.500 3.500 3.500 0.000 1.000
1.866 0.000 3.127 3.543 3.127 3.543 1.412 3.145

예제 출력 1

1.000 0.000
-2.500 -2.500
0.151 -0.398
W3sicHJvYmxlbV9pZCI6IjE4OTQiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiI0XHViYzg4XHVjOWY4IFx1YzgxMCIsImRlc2NyaXB0aW9uIjoiPHA+XHVhZmNkXHVjNzQwIFx1YzljMFx1YWUwOCBcdWQ1NTlcdWMwZGRcdWI0ZTRcdWM1ZDBcdWFjOGMgXHVkM2M5XHVkNTg5XHVjMGFjXHViY2MwXHVkNjE1XHVjNWQwIFx1YjMwMFx1ZDU3NCBcdWFjMDBcdWI5NzRcdWNjZDBcdWM4ZmNcdWFjZTAgXHVjNzg4XHViMjk0XHViMzcwIFx1YjJlNFx1Yzc0Y1x1YWNmYyBcdWFjMTlcdWM3NDAgXHViYjM4XHVjODFjXHViOTdjIFx1YjBiNFx1YzhmY1x1YWNlMCBcdWM3ODhcdWIyZTQuIFx1YzVlY1x1YjdlY1x1YmQ4NFx1YjRlNFx1YjNjNCB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