#include #include #include #include using namespace std; ifstream fin("test.in"); ofstream fout("test.out"); pair rot(double x,double y,double x2,double y2,double U) { x -= x2; y -= y2; double new_x = x * cos(U) - y * sin(U); double new_y = x * sin(U) + y * cos(U); new_x += x2; new_y += y2; return make_pair(new_x,new_y); } pair sim(double x,double y,double x2,double y2) { return make_pair(x2-x,y2-y); } int main() { int n; cin >> n; cout << 0 << " " << 0 << "\n"; cout.flush(); double x,y; while (cin >> x >> y) { pair p = rot(x,y,0,0,M_PI); cout << fixed << setprecision(7) << p.first << " " << p.second <<"\n"; cout.flush(); } }