Codeforces Round 261 (Div. 2)
A
Pashmak and Garden
Codeforces
1200
原题
←B →
翻译中…

Pashmak has fallen in love with an attractive girl called Parmida since one year ago...

翻译中…

Today, Pashmak set up a meeting with his partner in a romantic garden. Unfortunately, Pashmak has forgotten where the garden is. But he remembers that the garden looks like a square with sides parallel to the coordinate axes. He also remembers that there is exactly one tree on each vertex of the square. Now, Pashmak knows the position of only two of the trees. Help him to find the position of two remaining ones.

翻译中…

Input

翻译中…

The first line contains four space-separated $*x*_{1}, *y*_{1}, *x*_{2}, *y*_{2}$ $( - 100 ≤ *x*_{1}, *y*_{1}, *x*_{2}, *y*_{2} ≤ 100)$ integers, where $*x*_{1}$ and $*y*_{1}$ are coordinates of the first tree and $*x*_{2}$ and $*y*_{2}$ are coordinates of the second tree. It's guaranteed that the given points are distinct.

翻译中…

Output

翻译中…

If there is no solution to the problem, print -1. Otherwise print four space-separated integers $*x*_{3}, *y*_{3}, *x*_{4}, *y*_{4}$ that correspond to the coordinates of the two other trees. If there are several solutions you can output any of them.

翻译中…

Note that $*x*_{3}, *y*_{3}, *x*_{4}, *y*_{4}$ must be in the range $( - 1000 ≤ *x*_{3}, *y*_{3}, *x*_{4}, *y*_{4} ≤ 1000)$.

翻译中…

样例

Input #1
0 0 0 1
Output #1
1 0 1 1
InputCopy OutputCopy
Input #2
0 0 1 1
Output #2
0 1 1 0
InputCopy OutputCopy
Input #3
0 0 1 2
Output #3
-1
InputCopy OutputCopy
题目信息
题号
459A
时间限制
1 s
内存限制
256 MB
标签
模拟

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。