// I SELL YOU...! 
#include<iostream>
#include<vector>
#include<algorithm>
#include<functional>
#include<queue>
#include<chrono>
#include<iomanip>
#include<map>
#include<set>
#include<cmath>
using namespace std;
using ll = long long;
using P = pair<double,double>;
using TP = tuple<ll,ll,ll>;
void init_io(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << setprecision(15);
}
double size(double x,double y){
  return sqrt(x*x+y*y);
}
void solve(P p,P p1,P p2){
  double nume = (p.first-p1.first)*(p2.first-p1.first) 
    + (p.second-p1.second)*(p2.second-p1.second);
  double deno = size(p2.first-p1.first,p2.second-p1.second);
  deno *= deno;
  double d = nume / deno;
  P m = P(p1.first + (p2.first-p1.first)*d ,
      p1.second + (p2.second-p1.second)*d);
  P ans = P(2*m.first - p.first ,
    2*m.second - p.second);
  if(abs(ans.first)<1e-15) ans.first = 0;
  if(abs(ans.second)<1e-15) ans.second = 0;
  cout << ans.first <<" "<<ans.second << endl;
}
signed main(){
  init_io();
  double xp1,yp1,xp2,yp2,x,y;
  cin >> xp1 >> yp1 >> xp2 >> yp2;
  P p1 = P(xp1,yp1),p2 = P(xp2,yp2);
  ll q;
  cin >> q;
  for(int i=0;i<q;i++){
    cin >> x >> y;
    solve(P(x,y),p1,p2);
  }
}


### Prompt

Create a solution in cpp for the following problem:

For given three points p1, p2, p, find the reflection point x of p onto p1p2.

<image>

Constraints

* 1 ≤ q ≤ 1000
* -10000 ≤ xi, yi ≤ 10000
* p1 and p2 are not identical.

Input


xp1 yp1 xp2 yp2
q
xp0 yp0
xp1 yp1
...
xpq−1 ypq−1


In the first line, integer coordinates of p1 and p2 are given. Then, q queries are given for integer coordinates of p.

Output

For each query, print the coordinate of the reflection point x. The output values should be in a decimal fraction with an error less than 0.00000001.

Examples

Input

0 0 2 0
3
-1 1
0 1
1 1


Output

-1.0000000000 -1.0000000000
0.0000000000 -1.0000000000
1.0000000000 -1.0000000000


Input

0 0 3 4
3
2 5
1 4
0 3


Output

4.2400000000 3.3200000000
3.5600000000 2.0800000000
2.8800000000 0.8400000000

### Response

```cpp
// I SELL YOU...! 
#include<iostream>
#include<vector>
#include<algorithm>
#include<functional>
#include<queue>
#include<chrono>
#include<iomanip>
#include<map>
#include<set>
#include<cmath>
using namespace std;
using ll = long long;
using P = pair<double,double>;
using TP = tuple<ll,ll,ll>;
void init_io(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << setprecision(15);
}
double size(double x,double y){
  return sqrt(x*x+y*y);
}
void solve(P p,P p1,P p2){
  double nume = (p.first-p1.first)*(p2.first-p1.first) 
    + (p.second-p1.second)*(p2.second-p1.second);
  double deno = size(p2.first-p1.first,p2.second-p1.second);
  deno *= deno;
  double d = nume / deno;
  P m = P(p1.first + (p2.first-p1.first)*d ,
      p1.second + (p2.second-p1.second)*d);
  P ans = P(2*m.first - p.first ,
    2*m.second - p.second);
  if(abs(ans.first)<1e-15) ans.first = 0;
  if(abs(ans.second)<1e-15) ans.second = 0;
  cout << ans.first <<" "<<ans.second << endl;
}
signed main(){
  init_io();
  double xp1,yp1,xp2,yp2,x,y;
  cin >> xp1 >> yp1 >> xp2 >> yp2;
  P p1 = P(xp1,yp1),p2 = P(xp2,yp2);
  ll q;
  cin >> q;
  for(int i=0;i<q;i++){
    cin >> x >> y;
    solve(P(x,y),p1,p2);
  }
}


```