P7923 "EVOI-RD2" Xinxin's System of Inequalities
Description
Xinxin worked on a math problem about solving a system of linear inequalities in one variable.
This system contains $n$ linear inequalities in one variable. She has found the solution set of each inequality, and she now needs to merge them into the solution set of the whole system.
Each inequality's solution set has been simplified to the simplest form, such as $xt_i$, etc.), where $t_i$ is a constant term and $x$ is the unknown. The unknown is a lowercase English letter and appears on the left side of the inequality sign; the constant term is an integer and appears on the right side.
All inequality signs used are only one of the four types: $,\le,\ge$. In this problem's input and output, $\le$ and $\ge$ are written as `=`, respectively.
Now you need to find the solution set of this system of inequalities.
Input Format
The first line contains a positive integer $n$ and a lowercase English letter $x$, representing that there are $n$ simplified inequality solution sets, and the unknown variable in the system is $x$.
The next $n$ lines each contain a simplified linear inequality in one variable, i.e., the solution set of that inequality.
For each solution set, it consists of the unknown, an inequality sign, and the constant term $t_i$ in order, where the unknown is the $x$ given in the first line.
Output Format
Output one line: the solution set of the system of inequalities, in a form like "$a\ op1\ x\ op2\ b$" or "$x\ op\ a$", etc. Here $op1,op2$ are $
Explanation/Hint
**[Sample $1$ Explanation]**
As shown in the figure, the common part of the solution sets of all inequalities on the number line is the solution set of the system, which is $-3 < x \le 1$. Note that $\le$ is replaced by `