Problem: You are given a piece of paper in the shape of a simple polygon S. Your task is to turn it into a simple polygon T that has the same area as S.

You can use two tools: scissors and tape. Scissors can be used to cut any polygon into smaller polygonal pieces. Tape can be used to combine smaller pieces into larger polygons. You can use each tool multiple times, in any order. 

The polygons given in the input have integer coordinates, but you are allowed to produce shapes with non-integer coordinates in your output.

A formal definition of the task follows.

A shape Q=(Q_0,...,Q_{n-1}) is a sequence of three or more points in the plane such that: 

  * The closed polyline Q_0Q_1Q_2... Q_{n-1}Q_0 never touches or intersects itself, and therefore it forms the boundary of a simple polygon. 
  * The polyline goes around the boundary of the polygon in the counter-clockwise direction. 



The polygon whose boundary is the shape Q will be denoted P(Q).

Two shapes are called equivalent if one can be translated and/or rotated to become identical with the other.

Note that mirroring a shape is not allowed. Also note that the order of points matters: the shape (Q_1,...,Q_{n-1},Q_0) is not necessarily equivalent to the shape (Q_0,...,Q_{n-1}).

<image>

In the figure on the left: Shapes U and V are equivalent. Shape W is not equivalent with them because the points of W are given in a different order. Regardless of the order of points, the fourth shape is not equivalent with the previous ones either as flipping a shape is not allowed.

In both input and output, a shape with n points is represented as a single line that contains 2n+1 space-separated numbers: the number n followed by the coordinates of the points: Q_{0,x}, Q_{0,y}, Q_{1,x}, ...

Shapes have identification numbers (IDs). The given shape S has ID 0, the shapes you produce in your solutions are given IDs 1, 2, 3, ..., in the order in which they are produced.

Shapes B_1,...,B_k form a subdivision of shape A if: 

  * The union of all P(B_i) is exactly P(A). 
  * For each i≠ j, the area of the intersection of P(B_i) and P(B_j) is zero. 



The scissors operation destroys one existing shape A and produces one or more shapes B_1,...,B_k that form a subdivision of A.

<image>

In the figure: Shape A (square) subdivided into shapes B_1, B_2, B_3 (the three triangles). One valid way to describe one of the B_i is "3 3 1 6 1 5.1 4".

The tape operation destroys one or more existing shapes A_1,...,A_k and produces one new shape B. In order to perform this operation, you must first specify shapes C_1,...,C_k and only then the final shape B. These shapes must satisfy the following: 

  * For each i, the shape C_i is equivalent to the shape A_i. 
  * The shapes C_1,...,C_k form a subdivision of the shape B. 



Informally, you choose the shape B and show how to move each of the existing A_i to its correct location C_i within B. Note that only the shape B gets a new ID, the shapes C_i do not.

Input

The first line contains the source shape S.

The second line contains the target shape T.

Each shape has between 3 and 10 points, inclusive. Both shapes are given in the format specified above.

All coordinates in the input are integers between -10^6 and 10^6, inclusive.

In each shape, no three points form an angle smaller than 3 degrees. (This includes non-consecutive points and implies that no three points are collinear.)

The polygons P(S) and P(T) have the same area.

Output

Whenever you use the scissors operation, output a block of lines of the form: 
    
    
      
    scissors  
    id(A) k  
    B_1  
    B_2  
    ...  
    B_k  
    

where id(A) is the ID of the shape you want to destroy, k is the number of new shapes you want to produce, and B_1,...,B_k are those shapes.

Whenever you use the tape operation, output a block of lines of the form: 
    
    
      
    tape  
    k id(A_1) ... id(A_k)  
    C_1  
    C_2  
    ...  
    C_k  
    B  
    

where k is the number of shapes you want to tape together, id(A_1),...,id(A_k) are their IDs, C_1,...,C_k are equivalent shapes showing their position within B, and B is the final shape obtained by taping them together.

It is recommended to output coordinates of points to at least 10 decimal places.

The output must satisfy the following: 

  * All coordinates of points in the output must be between -10^7 and 10^7, inclusive. 
  * Each shape in the output must have at most 100 points. 
  * In each operation the number k of shapes must be between 1 and 100, inclusive. 
  * The number of operations must not exceed 2000. 
  * The total number of points in all shapes in the output must not exceed 20000. 
  * In the end, there must be exactly one shape (that hasn't been destroyed), and that shape must be equivalent to T. 
  * All operations must be valid according to the checker. Solutions with small rounding errors will be accepted. (Internally, all comparisons check for absolute or relative error up to 10^{-3} when verifying each condition.) 

Scoring

A shape is called a nice rectangle if it has the form ((0,0),~ (x,0),~ (x,y),~ (0,y)) for some positive integers x and y.

A shape is called a nice square if additionally x=y.

A shape A is called strictly convex if all inner angles of the polygon P(A) are smaller than 180 degrees.

Subtask 1 (5 points): S and T are nice rectangles. All coordinates of all points are integers between 0 and 10, inclusive

Subtask 2 (13 points): S is a nice rectangle with x>y, and T is a nice square

Subtask 3 (12 points): S and T are nice rectangles

Subtask 4 (14 points): S is a triangle and T is a nice square

Subtask 5 (10 points): S and T are triangles

Subtask 6 (16 points): S is a strictly convex polygon and T is a nice rectangle

Subtask 7 (11 points): T is a nice rectangle

Subtask 8 (19 points): no additional constraints

Examples

Input


6 0 0 6 0 6 4 5 4 5 9 0 9
4 0 0 7 0 7 7 0 7


Output


scissors
0 5
3 0 0 3 0 3 4
3 3 4 0 4 0 0
3 3 0 6 0 6 4
3 6 4 3 4 3 0
4 0 4 5 4 5 9 0 9
tape
5 1 2 5 3 4
3 0 3 0 0 4 0
3 4 0 7 0 7 4
4 0 3 4 0 7 4 3 7
3 7 4 7 7 3 7
3 3 7 0 7 0 3
4 0 0 7 0 7 7 0 7

Input


4 0 0 3 0 3 3 0 3
4 7 -1 10 -1 11 2 8 2


Output


scissors
0 2
3 0 0 1 3 0 3
4 1 3 0 0 3 0 3 3
tape
2 1 2
3 110 -1 111 2 110 2
4 108 2 107 -1 110 -1 110 2
4 107 -1 110 -1 111 2 108 2


Input


4 0 0 9 0 9 1 0 1
4 0 0 3 0 3 3 0 3


Output


scissors
0 2
4 1.470000000 0 9 0 9 1 1.470000000 1
4 0 0 1.470000000 0 1.470000000 1 0 1
scissors
1 2
4 1.470000000 0 6 0 6 1 1.470000000 1
4 9 0 9 1 6 1 6 0
tape
2 4 3
4 3 2 3 1 6 1 6 2
4 6 1 1.470000000 1 1.470000000 0 6 0
6 1.470000000 0 6 0 6 2 3 2 3 1 1.470000000 1
scissors
5 4
4 1.470000000 0 3 0 3 1 1.470000000 1
4 3 0 4 0 4 2 3 2
4 4 2 4 0 5 0 5 2
4 5 0 6 0 6 2 5 2
tape
5 2 6 7 8 9
4 0 0 1.470000000 0 1.470000000 1 0 1
4 1.470000000 0 3 0 3 1 1.470000000 1
4 0 2 0 1 2 1 2 2
4 0 2 2 2 2 3 0 3
4 3 3 2 3 2 1 3 1
4 0 0 3 0 3 3 0 3

Note

The figure below shows the first example output. On the left is the original figure after using the scissors, on the right are the corresponding C_i when we tape those pieces back together.

<image>

In the second example output, note that it is sufficient if the final shape is equivalent to the target one, they do not have to be identical.

The figure below shows three stages of the third example output. First, we cut the input rectangle into two smaller rectangles, then we cut the bigger of those two rectangles into two more. State after these cuts is shown in the top left part of the figure.

Continuing, we tape the two new rectangles together to form a six-sided polygon, and then we cut that polygon into three 2-by-1 rectangles and one smaller rectangle. This is shown in the bottom left part of the figure.

Finally, we take the rectangle we still have from the first step and the four new rectangles and we assemble them into the desired 3-by-3 square.

<image>

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;
using pil = pair<int, ll>;
using pli = pair<ll, int>;
using pll = pair<ll, ll>;
using ld = long double;
template <typename T1, typename T2>
bool chkmin(T1& x, T2 y) {
  return y < x ? (x = y, true) : false;
}
template <typename T1, typename T2>
bool chkmax(T1& x, T2 y) {
  return y > x ? (x = y, true) : false;
}
void debug_out() { cerr << endl; }
template <typename T1, typename... T2>
void debug_out(T1 A, T2... B) {
  cerr << ' ' << A;
  debug_out(B...);
}
template <typename T>
void mdebug_out(T* a, int n) {
  for (int i = 0; i < n; ++i) {
    cerr << a[i] << ' ';
  }
  cerr << endl;
}
template <typename T>
ostream& operator<<(ostream& stream, const vector<T>& v) {
  for (auto& x : v) {
    stream << x << ' ';
  }
  return stream;
}
template <typename T1, typename T2>
ostream& operator<<(ostream& stream, const pair<T1, T2>& p) {
  return stream << p.first << ' ' << p.second;
}
const double eps = 1e-4;
struct pt {
  double x, y;
  pt(double _x = 0, double _y = 0) : x(_x), y(_y) {}
  pt(const pt& A, const pt& B) : x(B.x - A.x), y(B.y - A.y) {}
  pt operator+(const pt& p) const { return pt(x + p.x, y + p.y); }
  pt operator-(const pt& p) const { return pt(x - p.x, y - p.y); }
  double operator*(const pt& p) const { return x * p.x + y * p.y; }
  double operator%(const pt& p) const { return x * p.y - y * p.x; }
  pt operator*(double k) const { return pt(k * x, k * y); }
  double len() { return sqrt(x * x + y * y); }
  bool operator==(const pt& p) const {
    return fabs(x - p.x) < eps && fabs(y - p.y) < eps;
  }
};
ostream& operator<<(ostream& stream, const pt& P) {
  return stream << P.x << ' ' << P.y;
}
struct Poly {
  int n;
  vector<pt> P;
  int idx;
  Poly() {}
  Poly(pt A, pt B, pt C, int _idx) {
    n = 3;
    P = {A, B, C};
    idx = _idx;
  }
  Poly(pt A, pt B, pt C, pt D, int _idx) {
    n = 4;
    P = {A, B, C, D};
    idx = _idx;
  }
  Poly(pt A, pt B, pt C, pt D, pt E, int _idx) {
    n = 5;
    P = {A, B, C, D, E};
    idx = _idx;
  }
  Poly(const Poly& oth, int _idx) {
    idx = _idx;
    n = oth.n;
    P = vector<pt>((oth.P).begin(), (oth.P).end());
  }
  Poly(const Poly& oth) {
    idx = oth.idx;
    n = oth.n;
    P = vector<pt>((oth.P).begin(), (oth.P).end());
  }
  void read() {
    cin >> n;
    P.resize(n);
    idx = 0;
    for (auto& A : P) cin >> A.x >> A.y;
  }
};
ostream& operator<<(ostream& stream, const Poly& P) {
  stream << P.n << ' ';
  for (auto& A : P.P) {
    stream << A << ' ';
  }
  return stream;
}
struct Operation {
  Poly P;
  vector<Poly> Q;
  int dir;
  Operation() {}
  Operation(vector<Poly> _Q, Poly _P) {
    dir = 0;
    Q = _Q;
    P = _P;
  }
  Operation(Poly _P, vector<Poly> _Q) {
    dir = 1;
    P = _P;
    Q = _Q;
  }
};
ostream& operator<<(ostream& stream, const Operation& oper) {
  if (oper.dir == 0) {
    stream << "tape\n";
    stream << oper.Q.size() << ' ';
    for (auto& T : oper.Q) {
      stream << T.idx << ' ';
    }
    stream << '\n';
    for (auto& T : oper.Q) {
      stream << T << '\n';
    }
    stream << oper.P << '\n';
  } else {
    stream << "scissors\n";
    stream << oper.P.idx << ' ' << oper.Q.size() << '\n';
    for (auto& T : oper.Q) {
      stream << T << '\n';
    }
  }
  return stream;
}
bool reverseAll;
Poly SetHeightRect(Poly R, double h, vector<Operation>& history, int& idx) {
  double x = R.P[2].x;
  double y = R.P[2].y;
  while (y >= 2 * h - eps) {
    auto L = Poly({0, 0}, {x, 0}, {x, y / 2}, {0, y / 2}, ++idx);
    auto H = Poly({0, y / 2}, {x, y / 2}, {x, y}, {0, y}, ++idx);
    history.push_back(Operation(R, {L, H}));
    Poly H1 = Poly({x, 0}, {2 * x, 0}, {2 * x, y / 2}, {x, y / 2}, ++idx);
    if (reverseAll) {
      history.push_back(Operation({Poly(H, H1.idx)}, H));
    } else {
      H1.idx = H.idx;
      --idx;
    }
    auto R1 = Poly({0, 0}, {2 * x, 0}, {2 * x, y / 2}, {0, y / 2}, ++idx);
    history.push_back(Operation({L, H1}, R1));
    x *= 2;
    y /= 2;
    R = R1;
  }
  if (y <= h + eps) {
    return R;
  }
  auto A = Poly({0, 0}, {x, 0}, {x, y - h}, {x * y / h - x, h}, {0, h}, ++idx);
  auto B = Poly({x, y - h}, {x, y}, {0, y}, ++idx);
  auto C = Poly({0, h}, {x * y / h - x, h}, {0, y}, ++idx);
  history.push_back(Operation(R, {A, B, C}));
  auto B1 = Poly({x * y / h, 0}, {x * y / h, h}, {x * y / h - x, h}, ++idx);
  auto C1 = Poly({x, 0}, {x * y / h, 0}, {x, y - h}, ++idx);
  if (reverseAll) {
    history.push_back(Operation({Poly(B, B1.idx)}, B));
    history.push_back(Operation({Poly(C, C1.idx)}, C));
  } else {
    B1.idx = B.idx;
    C1.idx = C.idx;
    idx -= 2;
  }
  auto R1 = Poly({0, 0}, {x * y / h, 0}, {x * y / h, h}, {0, h}, ++idx);
  history.push_back(Operation({A, B1, C1}, R1));
  return R1;
}
bool strictly_inside_triangle(pt E, pt A, pt B, pt C) {
  pt AB(A, B), BC(B, C), CA(C, A);
  pt AE(A, E), BE(B, E), CE(C, E);
  return AB % AE > 0 && BC % BE > 0 && CA % CE > 0;
}
int in_seg(pt P, pt A, pt B) {
  if (P == A || P == B) return 1;
  pt AB(A, B), AP(A, P), BP(B, P);
  return (fabs(AB % AP) < eps && AB * AP > 0 && AB * BP < 0 ? 2 : 0);
}
vector<Poly> triangulate(Poly P, int& idx) {
  vector<Poly> triangles;
  while (P.n > 3) {
    for (int i = 0; i < P.n; ++i) {
      pt A = P.P[(i - 1 + P.n) % P.n];
      pt B = P.P[i];
      pt C = P.P[(i + 1) % P.n];
      pt AB(A, B), BC(B, C);
      if (AB % BC >= 0) {
        if (all_of((P.P).begin(), (P.P).end(), [&](pt E) -> bool {
              return !strictly_inside_triangle(E, A, B, C);
            })) {
          triangles.push_back(Poly(A, B, C, ++idx));
          P.P.erase(P.P.begin() + i);
          P.n--;
          break;
        }
      }
    }
  }
  triangles.push_back(Poly(P.P[0], P.P[1], P.P[2], ++idx));
  return triangles;
}
void Reverse(vector<Operation>& history, int& idx) {
  reverse((history).begin(), (history).end());
  map<int, int> mapping;
  auto gt = [&](int x) -> int {
    if (mapping.count(x)) return mapping[x];
    return mapping[x] = idx++;
  };
  for (auto& oper : history) {
    oper.dir ^= 1;
    if (oper.Q.size() == 1) oper.dir = 0;
    oper.P.idx = gt(oper.P.idx);
    for (auto& T : oper.Q) {
      T.idx = gt(T.idx);
    }
  }
  --idx;
}
void SolveTwoNiceRects(Poly S, Poly T, vector<Operation>& history, int& idx) {
  double sy = S.P[2].y;
  double ty = T.P[2].y;
  if (sy == ty) return;
  if (sy > ty) {
    reverseAll = false;
    SetHeightRect(S, ty, history, idx);
  } else {
    reverseAll = true;
    int idx1 = 0;
    vector<Operation> history1;
    SetHeightRect(T, sy, history1, idx1);
    Reverse(history1, idx);
    for (auto oper : history1) {
      history.push_back(oper);
    }
  }
}
Poly NormalizeRightTriangle(pt A, pt B, pt C, int& idx) {
  pt CA(C, A), CB(C, B);
  double x = CA.len(), y = CB.len();
  return Poly({0, 0}, {x, 0}, {0, y}, ++idx);
}
Poly CombineRectangles(Poly S, Poly T, vector<Operation>& history, int& idx) {
  double sy = S.P[2].y;
  double ty = T.P[2].y;
  if (fabs(sy - ty) >= eps) {
    if (sy < ty) {
      swap(S, T);
      swap(sy, ty);
    }
    S = SetHeightRect(S, ty, history, idx);
  }
  double sx = S.P[2].x;
  double tx = T.P[2].x;
  Poly T1({sx, 0}, {sx + tx, 0}, {sx + tx, ty}, {sx, ty}, ++idx);
  if (reverseAll) {
    history.push_back(Operation({Poly(T, T1.idx)}, T));
  } else {
    T1.idx = T.idx;
    --idx;
  }
  Poly U({0, 0}, {sx + tx, 0}, {sx + tx, ty}, {0, ty}, ++idx);
  history.push_back(Operation({S, T1}, U));
  return U;
}
Poly SquareRectangle(Poly R, vector<Operation>& history, int& idx) {
  double x = R.P[2].x;
  double y = R.P[2].y;
  while (y < x - eps) {
    auto L = Poly({0, 0}, {x / 2, 0}, {x / 2, y}, {0, y}, ++idx);
    auto H = Poly({x / 2, 0}, {x, 0}, {x, y}, {x / 2, y}, ++idx);
    history.push_back(Operation(Poly(R), {L, H}));
    Poly H1 = Poly({0, y}, {x / 2, y}, {x / 2, 2 * y}, {0, 2 * y}, ++idx);
    if (reverseAll) {
      history.push_back(Operation({Poly(H, H1.idx)}, H));
    } else {
      H1.idx = H.idx;
      --idx;
    }
    auto R1 = Poly({0, 0}, {x / 2, 0}, {x / 2, 2 * y}, {0, 2 * y}, ++idx);
    history.push_back(Operation({L, H1}, R1));
    y *= 2;
    x /= 2;
    R = R1;
  }
  x = R.P[2].x;
  y = R.P[2].y;
  if (1 || fabs(x - y) < eps) return R;
  return SetHeightRect(R, sqrt(x * y), history, idx);
}
Poly MakeRect(Poly P0, vector<Operation>& history, int& idx) {
  auto triangulation = triangulate(P0, idx);
  history.push_back(Operation(P0, triangulation));
  int stupidOperId = history.size() - 1;
  vector<Poly> right_triangles;
  for (auto& T : triangulation) {
    bool Right = false;
    vector<int> perm = {0, 1, 2};
    for (int i = 0; i < 3; ++i) {
      pt A = T.P[i];
      pt B = T.P[(i + 1) % 3];
      pt C = T.P[(i + 2) % 3];
      pt CA(C, A), CB(C, B);
      if (fabs(CA * CB) < eps) {
        Right = true;
        Poly T1 = NormalizeRightTriangle(A, B, C, idx);
        vector<pt> ordPoints = {T1.P[1], T1.P[2], T1.P[0]};
        if (!reverseAll) {
          Poly T1_0 = Poly(ordPoints[perm[0]], ordPoints[perm[1]],
                           ordPoints[perm[2]], T.idx);
          Poly T1_1 = Poly(ordPoints[perm[0]], ordPoints[perm[1]],
                           ordPoints[perm[2]], T1.idx);
          history.push_back(Operation({T1_0}, T1_1));
        } else {
          vector<int> inv_perm(3);
          for (int i = 0; i < 3; ++i) {
            inv_perm[perm[i]] = i;
          }
          Poly T1_0 = Poly(T.P[perm[0]], T.P[perm[1]], T.P[perm[2]], T.idx);
          Poly T1_1 = Poly(T.P[perm[0]], T.P[perm[1]], T.P[perm[2]], T1.idx);
          history.push_back(Operation({T1_1}, T1_0));
          for (auto& P : history[stupidOperId].Q) {
            if (P.idx == T.idx) {
              P.P = {T.P[perm[0]], T.P[perm[1]], T.P[perm[2]]};
            }
          }
        }
        right_triangles.push_back(T1);
      }
      rotate(perm.begin(), perm.end() - 1, perm.end());
    }
    if (!Right) {
      for (int i = 0; i < 3; ++i) {
        pt A = T.P[i];
        pt B = T.P[(i + 1) % 3];
        pt C = T.P[(i + 2) % 3];
        pt BA(B, A), BC(B, C);
        double k = (BA * BC) / (BC * BC);
        pt H = B + BC * k;
        if (in_seg(H, B, C) == 0) continue;
        assert(in_seg(H, B, C) != 1);
        Poly E, F;
        if (!reverseAll) {
          E = Poly(A, B, H, ++idx);
          F = Poly(C, A, H, ++idx);
          history.push_back(Operation(T, {E, F}));
        } else {
          E = Poly(H, A, B, ++idx);
          F = Poly(H, C, A, ++idx);
          history.push_back(Operation(T, {E, F}));
          E.P = {A, B, H};
          F.P = {C, A, H};
        }
        auto E1 = NormalizeRightTriangle(A, B, H, idx);
        auto E1_0 = Poly(E1.P[1], E1.P[2], E1.P[0], E.idx);
        auto E1_1 = Poly(E1.P[1], E1.P[2], E1.P[0], E1.idx);
        if (!reverseAll) {
          history.push_back(Operation({E1_0}, E1_1));
        } else {
          Poly E2 = Poly(E.P[2], E.P[0], E.P[1], E.idx);
          history.push_back(Operation({Poly(E2, E1.idx)}, E2));
        }
        right_triangles.push_back(E1);
        auto F1 = NormalizeRightTriangle(C, A, H, idx);
        auto F1_0 = Poly(F1.P[1], F1.P[2], F1.P[0], F.idx);
        auto F1_1 = Poly(F1.P[1], F1.P[2], F1.P[0], F1.idx);
        if (!reverseAll) {
          history.push_back(Operation({F1_0}, F1_1));
        } else {
          Poly F2 = Poly(F.P[2], F.P[0], F.P[1], F.idx);
          history.push_back(Operation({Poly(F2, F1.idx)}, F2));
        }
        right_triangles.push_back(F1);
        break;
      }
    }
  }
  vector<Poly> rectangles;
  for (auto& T : right_triangles) {
    double x = T.P[1].x;
    double y = T.P[2].y;
    Poly E({0, 0}, {x / 2, 0}, {x / 2, y / 2}, {0, y}, ++idx);
    Poly F({x / 2, 0}, {x, 0}, {x / 2, y / 2}, ++idx);
    history.push_back(Operation(T, {E, F}));
    Poly F1({x / 2, y}, {0, y}, {x / 2, y / 2}, ++idx);
    if (reverseAll) {
      history.push_back(Operation({Poly(F, F1.idx)}, F));
    } else {
      F1.idx = F.idx;
      --idx;
    }
    Poly R({0, 0}, {x / 2, 0}, {x / 2, y}, {0, y}, ++idx);
    history.push_back(Operation({E, F1}, R));
    rectangles.push_back(R);
  }
  sort((rectangles).begin(), (rectangles).end(),
       [&](const Poly& lhs, const Poly& rhs) -> bool {
         return lhs.P[2].x * lhs.P[2].y < rhs.P[2].x * lhs.P[2].y;
       });
  Poly R = rectangles[0];
  R = SquareRectangle(R, history, idx);
  for (int i = 1; i < rectangles.size(); ++i) {
    rectangles[i] = SquareRectangle(rectangles[i], history, idx);
    R = CombineRectangles(R, rectangles[i], history, idx);
    R = SquareRectangle(R, history, idx);
  }
  return R;
}
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.precision(12);
  cout << fixed;
  Poly P1;
  P1.read();
  int idx1 = 0;
  vector<Operation> h1;
  reverseAll = false;
  auto R1 = MakeRect(P1, h1, idx1);
  Poly P2;
  P2.read();
  int idx2 = 0;
  vector<Operation> h2;
  reverseAll = true;
  auto R2 = MakeRect(P2, h2, idx2);
  SolveTwoNiceRects(R1, R2, h1, idx1);
  Reverse(h2, idx1);
  for (auto oper : h2) h1.push_back(oper);
  for (auto& oper : h1) {
    cout << oper << '\n';
  }
  1337;
  return 0;
}