Problems
10119 - Point Symmetry
SUBMIT PROBLEM

Point Symmetry

Time Limit: 1 sec

 

The Problem

Point symmetry is an interesting idea in geometry. In definition, Point Symmetry is when every part has a matching part -

 

# the same distance from the central point

# but in the opposite direction.

 

For example, You are given a point P at a given position relative to a mid-point Q. And P has a corresponding point P1 with the same distance from Q but in the opposite direction.

 

The Input

The input contains four space separated integers in every line. Describing the respective values of Px, Py, Qx, Qy defining Points P = (Px, Py) and Q = (Qx, Qy). Input is terminated by END OF FILE. (-100 <= Px, Py, Qx, Qy <= 100)

 

The Output

For each line of input, Print the corresponding respective values of P1x and P1y where P1 = (P1x, P1y) as two space separated integers in a separate line.

 

Sample Input

2 1 4 3

 

Sample Output

6 5

 

 

 

[University Level]

Inter School & College Programming Contest (ISCPC) 2017

Problem Setter: Md. Helal Uddin